Created
April 22, 2010 20:59
-
-
Save msassak/375806 to your computer and use it in GitHub Desktop.
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
| module TestWorld | |
| def log_in | |
| puts "Logging in" | |
| end | |
| def log_out | |
| puts "Logging out" | |
| end | |
| end | |
| Before do | |
| log_out | |
| end | |
| World(TestWorld) |
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
| 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 |
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 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