Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix edge RuboCop offences #1121

Merged
merged 1 commit into from
Jan 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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