summaryrefslogtreecommitdiff
path: root/test/test_go.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_go.rb')
-rwxr-xr-xtest/test_go.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_go.rb b/test/test_go.rb
index 7d963ae0..2861235e 100755
--- a/test/test_go.rb
+++ b/test/test_go.rb
@@ -109,7 +109,7 @@ class Tmux
class << lines
def counts
lazy
- .map { |l| l.scan(%r{^. ([0-9]+)\/([0-9]+)( \(([0-9]+)\))?}) }
+ .map { |l| l.scan(%r{^. ([0-9]+)/([0-9]+)( \(([0-9]+)\))?}) }
.reject(&:empty?)
.first&.first&.map(&:to_i)&.values_at(0, 1, 3) || [0, 0, 0]
end
@@ -2052,7 +2052,7 @@ module CompletionTest
tmux.until { |lines| assert_equal 'cd /tmp/fzf-test/d55/xx', lines[-1] }
# Should not match regular files (bash-only)
- if self.class == TestBash
+ if instance_of?(TestBash)
tmux.send_keys :Tab
tmux.until { |lines| assert_equal 'cd /tmp/fzf-test/d55/xx', lines[-1] }
end