Skip to content

Commit 70d48f7

Browse files
committed
Removed comments part of email
1 parent a770f40 commit 70d48f7

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

app/views/report_mailer/report_content.text.erb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
<%= t('.prolog') %>
22

33
<% case @reported_content %>
4-
<% when Comment %>
5-
<%= @reported_content.text %>
6-
7-
<%= t('.take_action') %>
8-
9-
<%= rails_admin.show_url(
10-
model_name: 'comment',
11-
id: @reported_content.id) %>
124
<% when RequestForComment %>
135
<%= @reported_content.question %>
146

spec/mailers/report_mailer_spec.rb

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,5 @@
2323
expect(mail.body).to include('Inappropriate content for RfC.')
2424
end
2525
end
26-
27-
context 'when a Comment is reported' do
28-
it 'sets the correct subject' do
29-
expect(mail.subject).to eq(I18n.t('report_mailer.report_content.subject', content_name: Comment.model_name.human))
30-
end
31-
32-
it 'sets the correct receiver' do
33-
expect(mail.to).to include('[email protected]')
34-
end
35-
36-
it 'includes the reported content' do
37-
expect(mail.body).to include('Inappropriate content for Comment.')
38-
end
39-
end
4026
end
4127
end

0 commit comments

Comments
 (0)