Add and appy RSpec/RepeatedExampleGroupBody rule
This rule is available since rubocop-rspec 1.38.0. Thanks to it, we've found out we were testing topics behave like notifiable twice.
This commit is contained in:
@@ -365,6 +365,9 @@ RSpec/OverwritingSetup:
|
|||||||
RSpec/RepeatedExample:
|
RSpec/RepeatedExample:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
|
RSpec/RepeatedExampleGroupBody:
|
||||||
|
Enabled: true
|
||||||
|
|
||||||
RSpec/ScatteredLet:
|
RSpec/ScatteredLet:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
|
|||||||
@@ -68,8 +68,4 @@ describe Topic do
|
|||||||
expect(results).to eq [topic1, topic2, topic3]
|
expect(results).to eq [topic1, topic2, topic3]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "notifications" do
|
|
||||||
it_behaves_like "notifiable"
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user