mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-09-28 05:09:02 +00:00
Fix Travis CI build
This commit is contained in:
parent
2166b4ca17
commit
e2b87e0d74
@ -20,5 +20,9 @@ Style/MethodCallWithArgsParentheses:
|
|||||||
- ^refute_
|
- ^refute_
|
||||||
Style/NumericPredicate:
|
Style/NumericPredicate:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
Style/StringConcatenation:
|
||||||
|
Enabled: false
|
||||||
|
Style/OptionalBooleanParameter:
|
||||||
|
Enabled: false
|
||||||
Style/WordArray:
|
Style/WordArray:
|
||||||
MinSize: 1
|
MinSize: 1
|
||||||
|
@ -18,7 +18,7 @@ addons:
|
|||||||
- fish
|
- fish
|
||||||
- tmux
|
- tmux
|
||||||
update: true
|
update: true
|
||||||
install: gem install minitest rubocop rubocop-minitest rubocop-performance
|
install: gem install --no-document minitest:5.14.2 rubocop:1.0.0 rubocop-minitest:0.10.1 rubocop-performance:1.8.1
|
||||||
script:
|
script:
|
||||||
- make test
|
- make test
|
||||||
# LC_ALL=C to avoid escape codes in
|
# LC_ALL=C to avoid escape codes in
|
||||||
|
@ -109,7 +109,7 @@ class Tmux
|
|||||||
class << lines
|
class << lines
|
||||||
def counts
|
def counts
|
||||||
lazy
|
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?)
|
.reject(&:empty?)
|
||||||
.first&.first&.map(&:to_i)&.values_at(0, 1, 3) || [0, 0, 0]
|
.first&.first&.map(&:to_i)&.values_at(0, 1, 3) || [0, 0, 0]
|
||||||
end
|
end
|
||||||
@ -2052,7 +2052,7 @@ module CompletionTest
|
|||||||
tmux.until { |lines| assert_equal 'cd /tmp/fzf-test/d55/xx', lines[-1] }
|
tmux.until { |lines| assert_equal 'cd /tmp/fzf-test/d55/xx', lines[-1] }
|
||||||
|
|
||||||
# Should not match regular files (bash-only)
|
# Should not match regular files (bash-only)
|
||||||
if self.class == TestBash
|
if instance_of?(TestBash)
|
||||||
tmux.send_keys :Tab
|
tmux.send_keys :Tab
|
||||||
tmux.until { |lines| assert_equal 'cd /tmp/fzf-test/d55/xx', lines[-1] }
|
tmux.until { |lines| assert_equal 'cd /tmp/fzf-test/d55/xx', lines[-1] }
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user