I have the following test case in url_helper_test.rb (test patch for reference should be attached)
def
test_named_route_should_show_host_and_path_using_controller_default_url_options
class << @controller
def default_url_options(options = nil)
{:host => 'testtwo.host'}
end
end
with_url_helper_routing do
get :show_named_route, :kind => 'url'
assert_equal
'http://testtwo.host/url_helper_with_controller/show_named_route'
, @response.body
end
end
This fails, while similar test (in the second patch file) against
action controller directly seem to work ok.
Is this expected behavior?
-- Tom + Chris Roos
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---
0001-Added-failing-test-case.patch
Description: Binary data
0002-Added-a-second-test-case-that-passes.-This-one-uses.patch
Description: Binary data
