Created
April 21, 2012 00:44
-
-
Save distributedlife/2432904 to your computer and use it in GitHub Desktop.
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
Feature: Who cares? | |
Scenario: valid user accounts can log in | |
When I have a valid user account | |
Then I can login |
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
describe "Logging In" do | |
context "with a valid user" do | |
user = create_valid_user | |
login_user user | |
it "should log me in" do | |
user.logged_in?.should be_true | |
end | |
end | |
end |
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 have a valid user account$/ do | |
@user = create_valid_account | |
end | |
Then /^I can login$/ do | |
login_user @user | |
@user.logged_in?.should be_true | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment