diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-06-03 12:34:00 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-06-05 10:56:04 +0100 |
commit | 6bd0bfe7599aee4e55bdd63196d1e2c5cc80129c (patch) | |
tree | a63a36c11b90f369c7c56781ed79a40d9a9a11a6 /spec/controllers | |
parent | fee5d9384862af086613c4f09e0fd96f7bd347b8 (diff) |
Remove duplication from new correspondence urls
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/request_controller_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/request_controller_spec.rb b/spec/controllers/request_controller_spec.rb index bde1c136a..070511fb0 100644 --- a/spec/controllers/request_controller_spec.rb +++ b/spec/controllers/request_controller_spec.rb @@ -567,7 +567,7 @@ describe RequestController, "when showing one request" do get :get_attachment_as_html, :incoming_message_id => im.id, :id => ir.id, :part => 5, :file_name => 'hello world.txt', :skip_cache => 1 response.status.should == 303 new_location = response.header['Location'] - new_location.should match(/request\/#{ir.url_title}\?nocache=incoming-#{im.id}#incoming-#{im.id}/) + new_location.should match(/request\/#{ir.url_title}#incoming-#{im.id}/) end it "should find a uniquely named filename even if the URL part number was wrong" do |