summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.rubocop.yml2
-rw-r--r--test/test_core.rb16
-rw-r--r--test/test_layout.rb4
3 files changed, 12 insertions, 10 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index 920c1e5c..bc20731e 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -6,6 +6,8 @@ Metrics:
Enabled: false
Lint/ShadowingOuterLocalVariable:
Enabled: false
+Lint/NestedMethodDefinition:
+ Enabled: false
Style/MethodCallWithArgsParentheses:
Enabled: true
AllowedMethods:
diff --git a/test/test_core.rb b/test/test_core.rb
index bcd6e9d1..a56a263e 100644
--- a/test/test_core.rb
+++ b/test/test_core.rb
@@ -1618,15 +1618,15 @@ class TestCore < TestInteractive
tmux.send_keys %(seq 100 | #{FZF} --multi --reverse --preview-window up,noborder --preview 'env | grep ^FZF_ | sort' --no-input --bind enter:show-input+refresh-preview,space:disable-search+refresh-preview), :Enter
expected = {
- FZF_TOTAL_COUNT: '100',
- FZF_MATCH_COUNT: '100',
+ FZF_TOTAL_COUNT: '100',
+ FZF_MATCH_COUNT: '100',
FZF_SELECT_COUNT: '0',
- FZF_ACTION: 'start',
- FZF_KEY: '',
- FZF_POS: '1',
- FZF_QUERY: '',
- FZF_PROMPT: '>',
- FZF_INPUT_STATE: 'hidden'
+ FZF_ACTION: 'start',
+ FZF_KEY: '',
+ FZF_POS: '1',
+ FZF_QUERY: '',
+ FZF_PROMPT: '>',
+ FZF_INPUT_STATE: 'hidden'
}
tmux.until do |lines|
assert_equal expected, to_vars(lines).slice(*expected.keys)
diff --git a/test/test_layout.rb b/test/test_layout.rb
index ee0f31d2..97f8da6e 100644
--- a/test/test_layout.rb
+++ b/test/test_layout.rb
@@ -927,7 +927,7 @@ class TestLayout < TestInteractive
def test_layout_reverse_list
prefix = "seq 5 | #{FZF} --layout reverse-list --no-list-border --height ~100% --border sharp "
suffixes = [
- %[],
+ %(),
%[--header "$(seq 101 103)"],
%[--header "$(seq 101 103)" --header-first],
%[--header "$(seq 101 103)" --header-lines 3],
@@ -941,7 +941,7 @@ class TestLayout < TestInteractive
%[--header "$(seq 101 103)" --header-border sharp --header-lines 3 --header-lines-border sharp --header-first --no-input],
%[--header "$(seq 101 103)" --input-border sharp],
%[--header "$(seq 101 103)" --style full:sharp],
- %[--header "$(seq 101 103)" --style full:sharp --header-first],
+ %[--header "$(seq 101 103)" --style full:sharp --header-first]
]
output = <<~BLOCK
┌──────── ┌──────── ┌──────── ┌──────── ┌──────── ┌──────── ┌──────── ┌──────── ┌──────── ┌──────── ┌───────── ┌─────── ┌───────── ┌───────── ┌─────────