Skip to content
This repository
branch: master
Julien Biezemans October 13, 2011
file 28 lines (23 sloc) 1.129 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
Feature: World (or Context)

Scenario: access World variable
Given a World variable initialized to 1
When Cucumber executes a scenario that increments the World variable by 1
Then the feature passes
And the World variable should have contained 2 at the end of the scenario

Scenario: different World instances between scenarios
Given a World variable initialized to 1
When Cucumber executes two scenarios that increment the World variable by 1
Then the feature passes
And the World variable should have contained 2 at the end of the first scenario
And the World variable should have contained 2 at the end of the second scenario

Scenario: call function from World
Given a World function
When Cucumber executes a scenario that calls the World function
Then the feature passes
And the World function should have been called

Scenario: replace World constructor
Given a custom World constructor
And a World function
When Cucumber executes a scenario that calls the World function
Then the feature passes
And the World function should have been called
Something went wrong with that request. Please try again.