russ (owner)

Revisions

gist: 71725 Download_button fork
public
Public Clone URL: git://gist.github.com/71725.git
Embed All Files: show embed
Text only #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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"