Created
February 14, 2012 03:53
-
-
Save mfarr/1823373 to your computer and use it in GitHub Desktop.
Header Feature
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
@layout_wip | |
Feature: site header | |
In order to provide an area for menus and a login form | |
As a designer | |
I want to have a header area at the top of every page | |
Scenario: visit a page as a non-logged in user | |
Given that I am not logged in | |
When I visit "/" | |
Then I should see a header | |
And it should have a login form |
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
When /^I visit "([^"]*)"$/ do |url| | |
visit(url) | |
end | |
Given /^that I am not logged in$/ do | |
end | |
Then /^I should see a header$/ do | |
page.should have_selector("div#header") | |
end | |
Then /^it should have a login form$/ do | |
page.should have_selector("form#login-form") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment