aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/views/request_mailer/old_unclassified_updated.rhtml11
-rw-r--r--spec/models/request_mailer_spec.rb11
2 files changed, 16 insertions, 6 deletions
diff --git a/app/views/request_mailer/old_unclassified_updated.rhtml b/app/views/request_mailer/old_unclassified_updated.rhtml
index 461bda42e..715fcde3e 100644
--- a/app/views/request_mailer/old_unclassified_updated.rhtml
+++ b/app/views/request_mailer/old_unclassified_updated.rhtml
@@ -1,6 +1,11 @@
-Someone has updated the status of the <%= @info_request.law_used_full %> request
-'<%= @info_request.title %>' that you made to
-<%= @info_request.public_body.name %>. Follow this link to see the request.
+To help us keep the site tidy, someone else has updated the status of the
+<%= @info_request.law_used_full %> request '<%= @info_request.title %>'
+that you made to <%= @info_request.public_body.name %>, to
+"<%= @info_request.display_status.downcase %>" If you disagree with
+their categorisation, please update the status again yourself to what
+you believe to be more accurate.
+
+Follow this link to see the request:
<%= @url %>
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