aboutsummaryrefslogtreecommitdiffstats
path: root/spec/helpers
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-07-18 15:33:05 +0100
committerLouise Crow <louise.crow@gmail.com>2013-07-18 17:43:11 +0100
commit9fe48c5b9db1c0ba6c1a59f0d092c88e5cae1aa0 (patch)
tree6a244ebe1422fa9fe627a7b4eebf2055adc6016e /spec/helpers
parent6d67f4df65f8b56c9d54d71d449d46b1c6c92be2 (diff)
Switch routing-filter (which takes locale out of the params and puts it in the URL) off by default in model, controller, and helper tests. This means we can supply the locale as a param. Turn it on specifically for a couple of controller tests that test routing, and change other url localization tests into integration tests.
Diffstat (limited to 'spec/helpers')
-rw-r--r--spec/helpers/link_to_helper_spec.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/spec/helpers/link_to_helper_spec.rb b/spec/helpers/link_to_helper_spec.rb
index 4cc1d415b..b29419ef3 100644
--- a/spec/helpers/link_to_helper_spec.rb
+++ b/spec/helpers/link_to_helper_spec.rb
@@ -8,12 +8,7 @@ describe LinkToHelper do
before do
@mock_request = mock_model(InfoRequest, :url_title => 'test_title')
- RoutingFilter.active = false
end
- after do
- RoutingFilter.active = true
- end
-
it 'should return a path like /request/test_title' do
request_path(@mock_request).should == '/request/test_title'