Created
August 14, 2013 19:13
-
-
Save ch1ago/6234491 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
Feature: Site Follow | |
In order to follow somebody | |
As a user | |
I want to click and follow | |
Scenario: As a visitor | |
Given the sample users | |
And I am a visitor | |
And I am on @ned's site page | |
When I follow "Follow" | |
Then I should be on the sign up page | |
Scenario: I Follow | |
Given the sample users | |
And I am @james | |
And I am on @ned's site page | |
When I follow "Follow" | |
Then I should see "You are now following Eddard Stark" | |
Scenario: I Unfollow | |
Given the sample users | |
And I am @james | |
And that @james is following @ned | |
And I am on @ned's site page | |
When I follow "unfollow" | |
Then I should see "You no longer follow Eddard Stark" | |
Scenario: Shouldn't follow self | |
Given I am @james | |
And I am on @james's site page | |
When I should not see the selector "#follow_button" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment