diff options
author | Kyrylo Silin <silin@kyrylo.org> | 2018-10-14 14:23:34 +0800 |
---|---|---|
committer | Kyrylo Silin <silin@kyrylo.org> | 2018-10-14 14:40:48 +0800 |
commit | 383f97e3410e7a46ed1779e8aa770f9b3a5efc0b (patch) | |
tree | a34e49cb78c8e6b001742f2574b861749d8308bb /spec/commands/play_spec.rb | |
parent | e7f01818d36e92c883beb251badb045e5cdaefa7 (diff) | |
download | pry-383f97e3410e7a46ed1779e8aa770f9b3a5efc0b.tar.gz |
rubocop: fix offences of the Layout/EmptyLineBetweenDefs cop
Diffstat (limited to 'spec/commands/play_spec.rb')
-rw-r--r-- | spec/commands/play_spec.rb | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/spec/commands/play_spec.rb b/spec/commands/play_spec.rb index 780ab0f8..20df2f4c 100644 --- a/spec/commands/play_spec.rb +++ b/spec/commands/play_spec.rb @@ -40,12 +40,14 @@ describe "play" do it 'should play a file' do @t.process_command 'play spec/fixtures/whereami_helper.rb' expect(@t.eval_string).to eq unindent(<<-STR) + # rubocop:disable Layout/EmptyLineBetweenDefs class Cor def a; end def b; end def c; end def d; end end + # rubocop:enable Layout/EmptyLineBetweenDefs STR end @@ -53,12 +55,14 @@ describe "play" do it 'should output file contents with print option' do @t.process_command 'play --print spec/fixtures/whereami_helper.rb' expect(@t.last_output).to eq unindent(<<-STR) - 1: class Cor - 2: def a; end - 3: def b; end - 4: def c; end - 5: def d; end - 6: end + 1: # rubocop:disable Layout/EmptyLineBetweenDefs + 2: class Cor + 3: def a; end + 4: def b; end + 5: def c; end + 6: def d; end + 7: end + 8: # rubocop:enable Layout/EmptyLineBetweenDefs STR end end |