Skip to content
Myr

Apply RuboCop suggestions

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 9cad268 · Browse files · 2 files+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−3 removed

  • tests:+3 added−3 removed

2 files+3 added−3 removed

modified:test/lib/common.rb+1 added-1 removed
22 unmodified lines
2324FILE = File.expand_path(__FILE__)25BASE = File.expand_path('../..', __dir__)26Dir.chdir(BASE)27FZF = %[FZF_DEFAULT_OPTS="--no-scrollbar --gutter ' ' --pointer '>' --marker '>'" FZF_DEFAULT_COMMAND= #{BASE}/bin/fzf].freeze27FZF = %(FZF_DEFAULT_OPTS="--no-scrollbar --gutter ' ' --pointer '>' --marker '>'" FZF_DEFAULT_COMMAND= #{BASE}/bin/fzf).freeze2829def wait(timeout = DEFAULT_TIMEOUT)30 since = Time.now31 begin
209 unmodified lines
modified:test/test_core.rb+2 added-2 removed
2002 unmodified lines
2003 assert lines.any_include?("#{it}.")2004 end2005 end2006 elapsed = Time.now - time2007 assert elapsed < 22007 assert_operator elapsed, :<, 22008 end20092010 def test_bg_cancel2011 tmux.send_keys %(seq 0 1 | #{FZF} --bind 'space:bg-cancel+bg-transform-header(sleep {}; echo [{}])'), :Enter
4 unmodified lines
2016 tmux.send_keys :BSpace2017 tmux.until { assert_equal 2, it.match_count }2018 tmux.send_keys :Space2019 tmux.until { |lines| assert lines.any_include?('[0]') }2020 sleep 22020 sleep(2)2021 tmux.until do |lines|2022 assert lines.any_include?('[0]')2023 refute lines.any_include?('[1]')2024 end
78 unmodified lines