-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Scenario for for using a layout without a side bar when viewing…
… the new project action
- Loading branch information
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Feature: We want to us different layout for specific types of actions and areas | ||
In order to help inform the user that specific actions have different layouts associated to them | ||
As an user | ||
I want to see different layouts for specific actions and areas | ||
|
||
Scenario: Viewing the all forms should display te no sidebar layout | ||
When I view the "projects" "new" | ||
Then the view should not have a sidebar | ||
|
||
Scenario: A project index view should have a sidebar | ||
When I view the "projects" "index" | ||
Then the view should have a sidebar |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
When /^I view the "([^\"]*)" "([^\"]*)"$/ do |model, action| | ||
visit "/#{model}/#{action}" | ||
end | ||
|
||
Then /^the view should not have a sidebar$/ do | ||
response.should_not have_selector :div, attribute = {:id => 'sidebar'} | ||
end |