diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-12-18 19:41:05 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-01-13 12:36:43 +0000 |
commit | 3c8211f0a90cb65b8f19800843815619d23ecad3 (patch) | |
tree | 93ec245e2942de4f2d48f4e136f15774fc1b1159 /spec/controllers | |
parent | afbc8370d78fc4a453e0a768139f4bc7dd35d348 (diff) |
Add admin urls to change request emails
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/public_body_change_requests_controller_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/controllers/public_body_change_requests_controller_spec.rb b/spec/controllers/public_body_change_requests_controller_spec.rb index 00d9c7d40..7b878b893 100644 --- a/spec/controllers/public_body_change_requests_controller_spec.rb +++ b/spec/controllers/public_body_change_requests_controller_spec.rb @@ -36,6 +36,8 @@ describe PublicBodyChangeRequestsController, "creating a change request" do mail.body.should include('new_body@example.com') mail.body.should include('New Body') mail.body.should include("Please") + mail.body.should include('http://test.host/admin/body/new?change_request_id=') + mail.body.should include('http://test.host/admin/change_request/edit/') end it 'should show a notice' do @@ -76,6 +78,8 @@ describe PublicBodyChangeRequestsController, "creating a change request" do mail.body.should include('new_body@example.com') mail.body.should include(@public_body.name) mail.body.should include("Please") + mail.body.should include("http://test.host/admin/body/edit/#{@public_body.id}?change_request_id=") + mail.body.should include('http://test.host/admin/change_request/edit/') end it 'should show a notice' do |