Skip to content

Instantly share code, notes, and snippets.

@technicalpickles
Created October 6, 2008 20:52
Show Gist options
  • Save technicalpickles/15142 to your computer and use it in GitHub Desktop.
Save technicalpickles/15142 to your computer and use it in GitHub Desktop.
url_for fix for ActionView::TestCase
require 'action_view/test_case'
class ActionView::TestCase
include ActionController::UrlWriter
default_url_options[:host] = 'localhost'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment