Skip to content

Instantly share code, notes, and snippets.

@terrainoob
Created May 6, 2009 14:20
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save terrainoob/107539 to your computer and use it in GitHub Desktop.
Save terrainoob/107539 to your computer and use it in GitHub Desktop.
Cucumber subdomain testing
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
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