aboutsummaryrefslogtreecommitdiffstats
path: root/spec/helpers/link_to_helper_spec.rb
diff options
context:
space:
mode:
authorRobin Houston <robin.houston@gmail.com>2012-01-23 21:53:10 +0000
committerRobin Houston <robin.houston@gmail.com>2012-01-23 21:53:10 +0000
commit0e546a79b205124d7b95b89e4a2e9cc520a4fc10 (patch)
tree791ae964c0dd4aba79cc9a3a6537db49c594cedf /spec/helpers/link_to_helper_spec.rb
parent2c97a42455edb338a4ffeb529c9dd08bdf2864e0 (diff)
parent000a4b3bc2858124301eb36553b018266cfe2cae (diff)
Merge branch 'release/0.5' into develop
Diffstat (limited to 'spec/helpers/link_to_helper_spec.rb')
-rw-r--r--spec/helpers/link_to_helper_spec.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/helpers/link_to_helper_spec.rb b/spec/helpers/link_to_helper_spec.rb
index f85d2e70d..3fa91a8f8 100644
--- a/spec/helpers/link_to_helper_spec.rb
+++ b/spec/helpers/link_to_helper_spec.rb
@@ -7,9 +7,14 @@ describe LinkToHelper do
describe 'when creating a url for a request' do
before do
- ActionController::Routing::Routes.filters.clear
@mock_request = mock_model(InfoRequest, :url_title => 'test_title')
+ @old_filters = ActionController::Routing::Routes.filters
+ ActionController::Routing::Routes.filters = RoutingFilter::Chain.new
end
+ after do
+ ActionController::Routing::Routes.filters = @old_filters
+ end
+
it 'should return a path like /request/test_title' do
request_url(@mock_request).should == '/request/test_title'