m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-08 11:23:47 -05:00

Apply RuboCop suggestions

This commit is contained in:
Junegunn Choi
2025-09-22 21:23:54 +09:00
parent 9cad2686e9
commit ca294109c3
2 changed files with 3 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ DEFAULT_TIMEOUT = 10
FILE = File.expand_path(__FILE__) FILE = File.expand_path(__FILE__)
BASE = File.expand_path('../..', __dir__) BASE = File.expand_path('../..', __dir__)
Dir.chdir(BASE) Dir.chdir(BASE)
FZF = %[FZF_DEFAULT_OPTS="--no-scrollbar --gutter ' ' --pointer '>' --marker '>'" FZF_DEFAULT_COMMAND= #{BASE}/bin/fzf].freeze FZF = %(FZF_DEFAULT_OPTS="--no-scrollbar --gutter ' ' --pointer '>' --marker '>'" FZF_DEFAULT_COMMAND= #{BASE}/bin/fzf).freeze
def wait(timeout = DEFAULT_TIMEOUT) def wait(timeout = DEFAULT_TIMEOUT)
since = Time.now since = Time.now

View File

@@ -2004,7 +2004,7 @@ class TestCore < TestInteractive
end end
end end
elapsed = Time.now - time elapsed = Time.now - time
assert elapsed < 2 assert_operator elapsed, :<, 2
end end
def test_bg_cancel def test_bg_cancel
@@ -2017,7 +2017,7 @@ class TestCore < TestInteractive
tmux.until { assert_equal 2, it.match_count } tmux.until { assert_equal 2, it.match_count }
tmux.send_keys :Space tmux.send_keys :Space
tmux.until { |lines| assert lines.any_include?('[0]') } tmux.until { |lines| assert lines.any_include?('[0]') }
sleep 2 sleep(2)
tmux.until do |lines| tmux.until do |lines|
assert lines.any_include?('[0]') assert lines.any_include?('[0]')
refute lines.any_include?('[1]') refute lines.any_include?('[1]')