Skip to content

Commit

Permalink
Refactored to make use of the web steps 'I am on' step.
Browse files Browse the repository at this point in the history
  • Loading branch information
baphled committed Jul 16, 2010
1 parent f933ed0 commit 8884c1d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions features/plain/changes_view_improvements.feature
Expand Up @@ -7,7 +7,7 @@ Feature: Changes view improvements
Given there is a feature
And the feature has a path
When the feature has changed "Something different"
And I view the feature
And I am on "a feature"
And I use the "<link>" link
Then changes on the "<system_or_file>" should be displayed as "<colour>"

Expand All @@ -24,7 +24,7 @@ Feature: Changes view improvements
Given there is a feature
And the feature has a path
When the feature has changed "Something different"
And I view the feature
And I am on "a feature"
And I use the "<link>" link
Then the following notice should be displayed "<notice>"

Expand Down
8 changes: 4 additions & 4 deletions features/plain/home_page.feature
Expand Up @@ -6,13 +6,13 @@ Feature: Home page must display the intent of the site

Scenario: Visiting the home page with no last project
Given there is no last project
When we view the home page
When I am on "the home page"
Then I should see that no projects are on the system
And I should be instructed on how to add a project

Scenario: visiting the home page when projects have been created should display the latest projects
Given there is a last project
When we view the home page
When I am on "the home page"
Then it should be displayed
And it should display its title
And it should display when the project was created
Expand All @@ -22,13 +22,13 @@ Feature: Home page must display the intent of the site
Scenario: When a last project is present and it has no features we should be told
Given there is a last project
And the project has no features
When we view the home page
When I am on "the home page"
Then it should be displayed
And it should display a message about the project not having any features

Scenario: We should pluralise the features amount copy for proper pluralisation
Given there is a last project
And the project has more than 1 project
When we view the home page
When I am on "the home page"
Then it should be displayed
And it should display the word features

0 comments on commit 8884c1d

Please sign in to comment.