Skip to content

Instantly share code, notes, and snippets.

@russ
Created February 27, 2009 21:52
Show Gist options
  • Save russ/71725 to your computer and use it in GitHub Desktop.
Save russ/71725 to your computer and use it in GitHub Desktop.
Feature: Locked articles
In order to view articles
A user that is a basic member
Should only see partial article content
And a user that is at a higher level
Should see full article content
Scenario: Not logged in as a user
Given there is a magazine article "WSOP"
When I go to the magazine article page "WSOP"
Then I should see "Sign In to View Full Article"
Scenario: User is a basic member
Given there is a user "basic_member"
And there is a magazine article "WSOP"
When I go to the magazine article page "WSOP"
Then I should see "Upgrade"
Scenario: User is a premium member
Given there is a user "premium_member"
And there is a magazine article "WSOP"
When I go to the magazine article page "WSOP" as a "premium" member
Then I should not see "Upgrade"
Scenario: User is a all access member
Given there is a user "all_access_member"
And there is a magazine article "WSOP"
When I go to the magazine article page "WSOP" as a "all access" member
Then I should not see "Upgrade"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment