RuboCop: RSpec/RepeatedIncludeExample

manual

Change-Id: Ibc02e7d29fb346b9245a73fde2114191f4ed1fcb
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/279422
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
This commit is contained in:
Cody Cutrer 2021-11-23 13:34:36 -07:00
parent c1bfffa8df
commit ee33b6b896
2 changed files with 14 additions and 9 deletions

View File

@ -393,8 +393,6 @@ RSpec/RepeatedExampleGroupBody:
Severity: convention
RSpec/RepeatedExampleGroupDescription:
Severity: convention
RSpec/RepeatedIncludeExample:
Severity: convention
RSpec/ReturnFromStub:
Severity: convention
AutoCorrect: false

View File

@ -34,15 +34,22 @@ describe 'content_link_error' do
let(:asset) { @assignment }
let(:notification_name) { :content_link_error }
include_examples "a message"
let(:asset) { @quiz }
include_examples "a message"
context "with a quiz" do
let(:asset) { @quiz }
let(:asset) { @dt }
include_examples "a message"
include_examples "a message"
end
let(:asset) { @page }
context "with a discussion topic" do
let(:asset) { @dt }
include_examples "a message"
include_examples "a message"
end
context "with a wiki page" do
let(:asset) { @page }
include_examples "a message"
end
end