diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-07-28 09:00:17 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-07-28 12:49:14 +0100 |
commit | bd2472e13a03f4f30c96a5d694efdc5c76798662 (patch) | |
tree | 2823226dd7ce86e8ee3a209ceca2a91dff2f2a00 /spec/controllers/request_controller_spec.rb | |
parent | 5c6dfebda5d6f6ec2b3f25905b95e3a9e4247fe7 (diff) |
Cause the final step in the "new request" workflow to have a unique URL (so we can distinguish it in Google Analytics). Fixes #96
Diffstat (limited to 'spec/controllers/request_controller_spec.rb')
-rw-r--r-- | spec/controllers/request_controller_spec.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/controllers/request_controller_spec.rb b/spec/controllers/request_controller_spec.rb index 9d91bf8c2..1a190cad6 100644 --- a/spec/controllers/request_controller_spec.rb +++ b/spec/controllers/request_controller_spec.rb @@ -363,6 +363,9 @@ describe RequestController, "when creating a new request" do mail.body.should =~ /This is a silly letter. It is too short to be interesting./ response.should redirect_to(:action => 'show', :url_title => ir.url_title) + # This test uses an explicit path because it's relied in + # Google Analytics goals: + response.redirected_to.should == "/en/request/why_is_your_quango_called_gerald/new" end it "should give an error if the same request is submitted twice" do |