Created
October 25, 2012 17:49
-
-
Save dlikhten/3954294 to your computer and use it in GitHub Desktop.
Fun with capybara visit paths and domains.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In capybara tests, I get the following situations: | |
js - enabled tests | |
visit "/" - domain = localhost | |
visit "/agent" - domain = 127.0.0.1 | |
js - disabled tests | |
visit "/" - domain = localhost | |
visit "/agent" - domain = www.example.com | |
WTF is going on here? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment