Skip to content
Browse files

just call the method and assert the return value

do not test internals
  • Loading branch information...
1 parent 0a7beb1 commit 314cbea9a30679f3ebfcca0cd17756ca8cad81ea @tenderlove tenderlove committed May 9, 2014
Showing with 1 addition and 8 deletions.
  1. +1 −8 actionpack/test/controller/routing_test.rb
View
9 actionpack/test/controller/routing_test.rb
@@ -419,14 +419,7 @@ def test_optimised_named_route_with_host
get 'page' => 'content#show_page', :as => 'pages', :host => 'foo.com'
end
routes = setup_for_named_route
- routes.expects(:url_for).with({
- :host => 'foo.com',
- :only_path => false,
- :controller => 'content',
- :action => 'show_page',
- :use_route => 'pages'
- }).once
- routes.send(:pages_url)
+ assert_equal "http://foo.com/page", routes.pages_url
end
def setup_for_named_route(options = {})

0 comments on commit 314cbea

Please sign in to comment.
Something went wrong with that request. Please try again.