Skip to content

Commit

Permalink
Fix edge RuboCop offences
Browse files Browse the repository at this point in the history
    spec/rubocop/cop/rspec/repeated_include_example_spec.rb:217:1: C: [Corrected] InternalAffairs/EmptyLineBetweenExpectOffenseAndCorrection: Add empty line between expect_offense and expect_no_corrections.
          RUBY
    ^^^^^^^^^^
  • Loading branch information
pirj committed Jan 27, 2021
1 parent d58a043 commit 73cafc3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/rubocop/cop/rspec/multiple_subjects_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
RUBY

expect_offense(source)

expect_no_corrections
end

Expand Down Expand Up @@ -72,6 +73,7 @@
subject { 3 }
end
RUBY

expect_correction(<<-RUBY)
describe 'hello there' do
subject { 3 }
Expand Down
6 changes: 6 additions & 0 deletions spec/rubocop/cop/rspec/repeated_include_example_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
^{include_method}^^^^^^^ Repeated include of shared_examples 'an x' on line(s) [2]
end
RUBY

expect_no_corrections
end

Expand All @@ -27,6 +28,7 @@
^{include_method}^^^^^^^^ Repeated include of shared_examples 'an x' on line(s) [2]
end
RUBY

expect_no_corrections
end

Expand Down Expand Up @@ -63,6 +65,7 @@
^{include_method}^^^^^^^^^^^^ Repeated include of shared_examples 'an x' on line(s) [2]
end
RUBY

expect_no_corrections
end

Expand All @@ -76,6 +79,7 @@
^{include_method}^^^^^^^^^^^^^ Repeated include of shared_examples 'an x' on line(s) [2]
end
RUBY

expect_no_corrections
end

Expand Down Expand Up @@ -191,6 +195,7 @@
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Repeated include of shared_examples 'an x' on line(s) [2, 3]
end
RUBY

expect_no_corrections
end

Expand All @@ -215,6 +220,7 @@
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Repeated include of shared_examples 'an x' on line(s) [2, 3]
end
RUBY

expect_no_corrections
end

Expand Down

0 comments on commit 73cafc3

Please sign in to comment.