diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-07-29 13:27:53 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-07-29 13:27:53 +0100 |
commit | 3ba811a9e576a50123930ccccda4dc01d5e3341e (patch) | |
tree | 909c23216ba8714b0c1f252a833b1b152fb052e9 /spec/controllers/request_controller_spec.rb | |
parent | d303afc29726f000eefb125f07787a9455a84993 (diff) |
make explicit path test locale-independent
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 514eda0b4..69c1433f2 100644 --- a/spec/controllers/request_controller_spec.rb +++ b/spec/controllers/request_controller_spec.rb @@ -372,7 +372,7 @@ describe RequestController, "when creating a new request" do 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" + response.redirected_to.should =~ /request\/why_is_your_quango_called_gerald\/new$/ end it "should give an error if the same request is submitted twice" do |