Skip to content

Instantly share code, notes, and snippets.

@ch1ago
Created August 14, 2013 19:13
Show Gist options
  • Save ch1ago/6234491 to your computer and use it in GitHub Desktop.
Save ch1ago/6234491 to your computer and use it in GitHub Desktop.
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