Guest User

Untitled

a guest
Jul 16th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. # Necessary evil thing: Rack::Test sports as default host
  2. # "example.org", but Webrat and Ruby on Rails's integration test
  3. # classes use "example.com"; this discrepancy leads to Webrat not
  4. # being able to follow simple internal redirects.
  5. #
  6. # Drop in in features/support/
  7.  
  8. Kernel::silence_warnings { Rack::Test::DEFAULT_HOST = "example.com" }
Add Comment
Please, Sign In to add comment