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:
Javi Martín
2020-09-27 20:56:33 +02:00
parent 40244d6411
commit f4a6830a1b
2 changed files with 3 additions and 4 deletions

View File

@@ -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

View File

@@ -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