diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-02-28 14:32:43 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-03-02 14:49:14 +1100 |
commit | fef3e4ead66b49fa714cb2640998b3146c290ccd (patch) | |
tree | e42d7623afd1256a4e5d4af0c5c311df4ee17e55 /spec/models | |
parent | 521b821722f64485194a1be254b8819237f3769d (diff) |
Add optional message to requires_admin email
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/request_mailer_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/models/request_mailer_spec.rb b/spec/models/request_mailer_spec.rb index 39f554323..09f129bb0 100644 --- a/spec/models/request_mailer_spec.rb +++ b/spec/models/request_mailer_spec.rb @@ -367,6 +367,11 @@ describe RequestMailer, 'requires_admin' do mail.body.should include('http://test.host/en/admin/request/show/123') end + it "body should contain the message from the user" do + mail = RequestMailer.deliver_requires_admin(@info_request, nil, "Something has gone wrong") + mail.body.should include 'Something has gone wrong' + end + context 'has an ADMIN_BASE_URL set' do before(:each) do Configuration::should_receive(:admin_base_url).and_return('http://our.proxy.server/admin/alaveteli/') |