Skip to content

Commit

Permalink
Merge pull request #1121 from rubocop-hq/fix-edge-offences
Browse files Browse the repository at this point in the history
Fix edge RuboCop offences
  • Loading branch information
pirj committed Jan 27, 2021
2 parents d58a043 + 73cafc3 commit a117bc8
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 a117bc8

Please sign in to comment.