diff options
author | Louise Crow <louise.crow@gmail.com> | 2014-12-12 14:06:51 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-12-12 16:47:07 +0000 |
commit | 12aca5dd819653e596f7c13e587e6e7967d6ded3 (patch) | |
tree | dc709eca4bdef1a0f5915c81703067440c03ca59 /spec/integration/admin_spec.rb | |
parent | 64e636fee3651f5f6c9d3e34bd1260d546e11ce7 (diff) |
Use RESTful routing for index and show actions
Diffstat (limited to 'spec/integration/admin_spec.rb')
-rw-r--r-- | spec/integration/admin_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/integration/admin_spec.rb b/spec/integration/admin_spec.rb index 8e6351d2c..ceb010143 100644 --- a/spec/integration/admin_spec.rb +++ b/spec/integration/admin_spec.rb @@ -39,7 +39,7 @@ describe "When administering the site" do post_params = {'redeliver_incoming_message_id' => new_im.id, 'url_title' => ir.url_title} admin.post '/en/admin/incoming/redeliver', post_params - admin.response.location.should == 'http://www.example.com/en/admin/request/show/101' + admin.response.location.should == 'http://www.example.com/en/admin/requests/101' ir = InfoRequest.find_by_url_title(ir.url_title) ir.incoming_messages.length.should == 2 @@ -67,7 +67,7 @@ describe "When administering the site" do ir1.incoming_messages.length.should == 2 ir2.reload ir2.incoming_messages.length.should == 2 - admin.response.location.should == 'http://www.example.com/en/admin/request/show/106' + admin.response.location.should == 'http://www.example.com/en/admin/requests/106' InfoRequest.holding_pen_request.incoming_messages.length.should == 0 end |