Created
October 25, 2012 00:14
-
-
Save joshsmith/3949754 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 'spec_helper' | |
| feature 'Signing in' do | |
| before do | |
| create(:user) | |
| visit '/signin' | |
| end | |
| scenario 'Successful sign in' do | |
| fill_in "Login", :with => "[email protected]" | |
| fill_in "Password", :with => "password" | |
| click_button "Sign in" | |
| page.should have_content("Signed in successfully.") | |
| end | |
| end |
This file contains hidden or 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
| FactoryGirl.define do | |
| factory :user do | |
| email "[email protected]" | |
| username "testuser" | |
| name "Test User" | |
| password "password" | |
| password_confirmation "password" | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment