summaryrefslogtreecommitdiff
path: root/test/test_core.rb
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2025-09-22 21:23:54 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2025-09-22 21:23:54 +0900
commitca294109c37d5dfd3cc5d33026d58400fbfea34c (patch)
tree86db670b96aee85fa1cda6544be049d81162e0fe /test/test_core.rb
parent9cad2686e904c688b54a4c69d3f96801baadba31 (diff)
downloadfzf-ca294109c37d5dfd3cc5d33026d58400fbfea34c.tar.gz
Apply RuboCop suggestions
Diffstat (limited to 'test/test_core.rb')
-rw-r--r--test/test_core.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_core.rb b/test/test_core.rb
index c9f55803..1e1ff812 100644
--- a/test/test_core.rb
+++ b/test/test_core.rb
@@ -2004,7 +2004,7 @@ class TestCore < TestInteractive
end
end
elapsed = Time.now - time
- assert elapsed < 2
+ assert_operator elapsed, :<, 2
end
def test_bg_cancel
@@ -2017,7 +2017,7 @@ class TestCore < TestInteractive
tmux.until { assert_equal 2, it.match_count }
tmux.send_keys :Space
tmux.until { |lines| assert lines.any_include?('[0]') }
- sleep 2
+ sleep(2)
tmux.until do |lines|
assert lines.any_include?('[0]')
refute lines.any_include?('[1]')