diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-06-03 11:19:21 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-06-04 09:48:13 +0100 |
commit | fee5d9384862af086613c4f09e0fd96f7bd347b8 (patch) | |
tree | 6233dd8512841604cdfb586c8fae0b1bb938f8ae /spec/controllers/request_controller_spec.rb | |
parent | 2b39b1f0cc5a04247abc938dda551e78c5f5cf9e (diff) |
Add cache-busting to request response notification
Users get a new response email, click the link, but get a cached page.
This is a quick fix to ensure they always see the response when clicking
the link.
Diffstat (limited to 'spec/controllers/request_controller_spec.rb')
-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 070511fb0..bde1c136a 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}#incoming-#{im.id}/) + new_location.should match(/request\/#{ir.url_title}\?nocache=incoming-#{im.id}#incoming-#{im.id}/) end it "should find a uniquely named filename even if the URL part number was wrong" do |