Skip to content
Myr

Fix RuboCop errors

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 323f6f6 · Browse files · 3 files+12 added−10 removed
This commit

State

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

Diff stats

3 files+12 added−10 removed

  • tests:+10 added−10 removed
  • other:+2 added−0 removed

3 files+12 added−10 removed

modified:test/test_core.rb+8 added-8 removed
1616 unmodified lines
1617 end16181619 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), :Enter1620 expected = {1621 FZF_TOTAL_COUNT: '100',1622 FZF_MATCH_COUNT: '100',1621 FZF_TOTAL_COUNT: '100',1622 FZF_MATCH_COUNT: '100',1623 FZF_SELECT_COUNT: '0',1624 FZF_ACTION: 'start',1625 FZF_KEY: '',1626 FZF_POS: '1',1627 FZF_QUERY: '',1628 FZF_PROMPT: '>',1629 FZF_INPUT_STATE: 'hidden'1624 FZF_ACTION: 'start',1625 FZF_KEY: '',1626 FZF_POS: '1',1627 FZF_QUERY: '',1628 FZF_PROMPT: '>',1629 FZF_INPUT_STATE: 'hidden'1630 }1631 tmux.until do |lines|1632 assert_equal expected, to_vars(lines).slice(*expected.keys)1633 end
22 unmodified lines
modified:test/test_layout.rb+2 added-2 removed
925 unmodified lines
926927 def test_layout_reverse_list928 prefix = "seq 5 | #{FZF} --layout reverse-list --no-list-border --height ~100% --border sharp "929 suffixes = [930 %[],930 %(),931 %[--header "$(seq 101 103)"],932 %[--header "$(seq 101 103)" --header-first],933 %[--header "$(seq 101 103)" --header-lines 3],934 %[--header "$(seq 101 103)" --header-lines 3 --header-first],
5 unmodified lines
940 %[--header "$(seq 101 103)" --header-border sharp --header-lines 3 --header-lines-border sharp --header-first --input-border sharp],941 %[--header "$(seq 101 103)" --header-border sharp --header-lines 3 --header-lines-border sharp --header-first --no-input],942 %[--header "$(seq 101 103)" --input-border sharp],943 %[--header "$(seq 101 103)" --style full:sharp],944 %[--header "$(seq 101 103)" --style full:sharp --header-first],944 %[--header "$(seq 101 103)" --style full:sharp --header-first]945 ]946 output = <<~BLOCK947 ┌──────── ┌──────── ┌──────── ┌──────── ┌──────── ┌──────── ┌──────── ┌──────── ┌──────── ┌──────── ┌───────── ┌─────── ┌───────── ┌───────── ┌─────────948 │ > 1 │ > 1 │ > 1 │ 1 │ 1 │ > 1 │ > 1 │ 1 │ ┌────── │ ┌────── │ ┌─────── │ ┌───── │ > 1 │ ┌─────── │ ┌───────
33 unmodified lines
modified:.rubocop.yml+2 added