Created
March 18, 2011 18:35
-
-
Save hmans/876593 to your computer and use it in GitHub Desktop.
Having fun with Rspec 2 and Capybara.
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
require 'acceptance_helper' | |
feature "Welcome Page" do | |
background do | |
50.times { Factory(:user) } | |
end | |
scenario "when user is not logged in" do | |
visit '/' | |
page.should have_content('Welcome! :)') | |
within ".peeps" do | |
page.should have_css('.peep', :count => 25) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment