Skip to content

Instantly share code, notes, and snippets.

@dlikhten
Created October 25, 2012 17:49

Revisions

  1. dlikhten revised this gist Oct 25, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -11,4 +11,4 @@ visit "/" - domain = localhost
    visit "/agent" - domain = www.example.com


    WTF is going on here?
    WTF is going on here? Please note, this is the domain the browser visits. Nothing to do with any redirections in my app.
  2. dlikhten created this gist Oct 25, 2012.
    14 changes: 14 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    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?