diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2020-10-23 20:44:04 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2020-10-23 20:44:04 +0900 |
commit | e2b87e0d741111fd1f437f8e06f8286d9ef47dff (patch) | |
tree | 6146056ca59cc6f391ed489e4c4a9235725b61e4 /test | |
parent | 2166b4ca17daaa4a2b7d5af98668d5a9d4596a04 (diff) |
Fix Travis CI build
Diffstat (limited to 'test')
-rwxr-xr-x | test/test_go.rb | 4 |
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 |