Skip to content

Instantly share code, notes, and snippets.

@awesome
Forked from terrainoob/custom_steps.rb
Created June 16, 2009 10:07
Show Gist options
  • Save awesome/130627 to your computer and use it in GitHub Desktop.
Save awesome/130627 to your computer and use it in GitHub Desktop.
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