aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/request_controller_spec.rb
diff options
context:
space:
mode:
authorRobin Houston <robin@lenny.robin>2011-07-28 13:50:30 +0100
committerRobin Houston <robin@lenny.robin>2011-07-28 13:50:30 +0100
commit51a74f4b275fab25ac567843ab99b885a8444789 (patch)
tree8125efe5cef2ebabaedeacf591903d6a92656032 /spec/controllers/request_controller_spec.rb
parent512ee63b9eac634d42f2bf87cabd3fa4a0b7c554 (diff)
parentbd2472e13a03f4f30c96a5d694efdc5c76798662 (diff)
Merge branch 'master' of git@github.com:sebbacon/alaveteli
Diffstat (limited to 'spec/controllers/request_controller_spec.rb')
-rw-r--r--spec/controllers/request_controller_spec.rb3
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