Skip to content

Commit 031d7d1

Browse files
committed
fix: move mailer test let statements into context
1 parent 61ab246 commit 031d7d1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

spec/mailers/report_mailer_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
describe '#report_content' do
77
subject(:mail) { described_class.with(reported_content:).report_content }
88

9-
let(:question) { 'Inappropriate content for RfC.' }
10-
let(:reported_content) { create(:rfc, question:) }
9+
context 'when an RfC is reported' do
10+
let(:question) { 'Inappropriate content for RfC.' }
11+
let(:reported_content) { create(:rfc, question:) }
1112

12-
it 'sets the correct sender' do
13-
expect(mail.from).to include('[email protected]')
14-
end
13+
it 'sets the correct sender' do
14+
expect(mail.from).to include('[email protected]')
15+
end
1516

16-
context 'when an RfC is reported' do
1717
it 'sets the correct subject' do
1818
expect(mail.subject).to eq(I18n.t('report_mailer.report_content.subject', content_name: RequestForComment.model_name.human))
1919
end

0 commit comments

Comments
 (0)