Created
May 6, 2009 14:20
-
-
Save terrainoob/107539 to your computer and use it in GitHub Desktop.
Cucumber subdomain testing
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
Given /^I visit subdomain (.+)$/ do |sub| | |
host! "#{sub}.#{TEST_DOMAIN}" #TEST_DOMAIN is defined in test.rb. In my case TEST_DOMAIN = 'example.com' | |
end |
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
Scenario: yadda | |
Given I visit subdomain test | |
When ... | |
Then ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment