Skip to content

Commit

Permalink
Removed no longer needed scenario and fixed broken scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
baphled committed Jul 14, 2010
1 parent c6d23e8 commit b6f6752
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
13 changes: 5 additions & 8 deletions features/plain/projects.feature
Expand Up @@ -123,7 +123,8 @@ Feature: We need to a way to store our stories within a project, this will help
And the feature information should be saved

Scenario: I should not see a list of features if there are none associated with a project
Given I can view the projects page
Given there is a project
And I can view the projects page
When a project has no features
And I visit the first projects features
Then I should not see the project features section
Expand All @@ -133,11 +134,6 @@ Feature: We need to a way to store our stories within a project, this will help
Then I should be able to click the new project link
And be sent to the new projects view

Scenario: I should not be able to see the view project features link unless there are actually features linked to the project
Given I can view the projects page
When a project has no features
Then there should not be a 'view features' link

Scenario: I should be able to easily create new features for a project
Given I can view the projects page
Then all projects should have a 'Add features' link
Expand Down Expand Up @@ -169,7 +165,8 @@ Feature: We need to a way to store our stories within a project, this will help
And the project should have link to create new features

Scenario: When viewing a project with no feature, the user should not see the order button
Given I can view the projects page
Given there is a project
And I can view the projects page
When a project has no features
And there is a project
And the project is viewed
Expand Down Expand Up @@ -240,4 +237,4 @@ Feature: We need to a way to store our stories within a project, this will help
Scenario: A user can edit a project when it is being viewed
Given there is a project
When the project is viewed
Then I should be able to edit a the project information
Then I should be able to edit a the project information
2 changes: 1 addition & 1 deletion features/step_definitions/projects_steps.rb
Expand Up @@ -99,7 +99,7 @@
end

When /^a project has no features$/ do
Project.stub(:features).and_return []
@project.features.stub(:count).and_return 0
end

When /^I visit the project$/ do
Expand Down

0 comments on commit b6f6752

Please sign in to comment.