Skip to content

Instantly share code, notes, and snippets.

@dpickett
Created December 11, 2008 14:12
Show Gist options
  • Save dpickett/34718 to your computer and use it in GitHub Desktop.
Save dpickett/34718 to your computer and use it in GitHub Desktop.
class ActionView::TestCase
# Enable UrlWriter when testing helpers
include ActionController::UrlWriter
# Default host for helper tests
default_url_options[:host] = 'localhost'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment