aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/request_mailer_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/request_mailer_spec.rb')
-rw-r--r--spec/models/request_mailer_spec.rb11
1 files changed, 8 insertions, 3 deletions
diff --git a/spec/models/request_mailer_spec.rb b/spec/models/request_mailer_spec.rb
index 8339aa448..6f765d982 100644
--- a/spec/models/request_mailer_spec.rb
+++ b/spec/models/request_mailer_spec.rb
@@ -220,16 +220,21 @@ describe RequestMailer, 'when sending mail when someone has updated an old uncla
:law_used_full => 'Freedom of Information',
:title => 'Test request',
:public_body => @public_body,
+ :display_status => 'Rejected.',
:url_title => 'test_request')
@mail = RequestMailer.create_old_unclassified_updated(@info_request)
end
-
+
it 'should have the subject "Someone has updated the status of your request"' do
@mail.subject.should == 'Someone has updated the status of your request'
end
-
+
+ it 'should tell them what status was picked' do
+ @mail.body.should match(/"rejected."/)
+ end
+
it 'should contain the request path' do
@mail.body.should match(/request\/test_request/)
end
-
+
end