test/helpers/render_test_helper.rb in radiant-0.6.4 vs test/helpers/render_test_helper.rb in radiant-0.6.5
- old
+ new
@@ -44,17 +44,17 @@
end
private
def get_render_output(input, url, host = nil)
- setup_page(url, host)
+ setup_page(url, host)
@page.send(:parse, input)
end
def setup_page(url = nil, host = nil)
@page.request = ActionController::TestRequest.new
- @page.request.request_uri = 'http://testhost.tld' + (url || @page.url)
- @page.request.host = host unless host.nil?
+ @page.request.request_uri = (url || @page.url)
+ @page.request.host = host || "testhost.tld"
@page.response = ActionController::TestResponse.new
end
end