Skip to content

Instantly share code, notes, and snippets.

@msassak
Created April 22, 2010 20:59
Show Gist options
  • Select an option

  • Save msassak/375806 to your computer and use it in GitHub Desktop.

Select an option

Save msassak/375806 to your computer and use it in GitHub Desktop.
module TestWorld
def log_in
puts "Logging in"
end
def log_out
puts "Logging out"
end
end
Before do
log_out
end
World(TestWorld)
Feature: testing
Background:
Given I am logged in
And something else has happened
Scenario: test 1
When I do something
Scenario: test 2
When I do something
Scenario: test 3
When I do something
Scenario: test 4
When I do something
Given /^I am logged in$/ do
log_in
end
Given /^something else has happened$/ do
# no-op
end
Given "I do something" do
#puts "Doing something"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment