diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-01-25 08:22:42 +0000 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-01-25 08:22:42 +0000 |
commit | 4cbdf45b2077541a7bbc7e0a719289442c1d0fa3 (patch) | |
tree | 9a9d370d3d2d8f6bc5500b557cda3eb1a565b785 /spec/helpers/link_to_helper_spec.rb | |
parent | 498cbca64bf3e4075e74f110b1e02b47c39b45fc (diff) | |
parent | 05b8714c5f8d69c310f554d403a86a64781ee70a (diff) |
Merge branch 'wdtk' of github.com:sebbacon/alaveteli into wdtk
Conflicts:
app/controllers/request_controller.rb
Diffstat (limited to 'spec/helpers/link_to_helper_spec.rb')
-rw-r--r-- | spec/helpers/link_to_helper_spec.rb | 7 |
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' |