Sha256: a9c4fcaaac6dfb67a95b12a10c282211a62c7487856d13743c3cecd90bfea7f1

Contents?: true

Size: 1.18 KB

Versions: 33

Compression:

Stored size: 1.18 KB

Contents

Feature: Sign up with coupon

  In order to try the site with extended time
  As a user
  I want to use a coupon provided to me

  Background:
    Given the following plan exists:
      | name | price | trial |
      | Free | 0     | true  |
    And the following coupon exists:
      | name  | free months |
      | RAMEN | 3           |

  Scenario: Sign up for a trial plan with coupon
    When I sign up with the "RAMEN" coupon for the "Free" plan
    Then I should see "Your trial will expire after 90 days"
    When I fill in "Email" with "email@person.com"
    And I fill in "Password" with "password"
    And I press "Sign up"
    Then I should see "created"

  Scenario: Receive a reminder about an expiring trial plan with coupon
    Given a "Free" account with "RAMEN" coupon exists with a name of "Test" created 83 days ago
    And a user exists with an email of "admin@example.com"
    And "admin@example.com" is an admin of the "Test" account
    When the daily Saucy jobs are processed
    And I sign in as "admin@example.com"
    And I follow the link sent to "admin@example.com" with subject "Your trial is expiring soon"
    Then I should be on the upgrade plan page for the "Test" account

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
saucy-0.14.3 lib/generators/saucy/features/templates/features/sign_up_coupon.feature
saucy-0.10.10 lib/generators/saucy/features/templates/features/sign_up_coupon.feature
saucy-0.14.2 lib/generators/saucy/features/templates/features/sign_up_coupon.feature
saucy-0.14.1 lib/generators/saucy/features/templates/features/sign_up_coupon.feature
saucy-0.14.0 lib/generators/saucy/features/templates/features/sign_up_coupon.feature
saucy-0.13.3 lib/generators/saucy/features/templates/features/sign_up_coupon.feature
saucy-0.13.2 lib/generators/saucy/features/templates/features/sign_up_coupon.feature
saucy-0.10.9 lib/generators/saucy/features/templates/features/sign_up_coupon.feature
saucy-0.10.8 lib/generators/saucy/features/templates/features/sign_up_coupon.feature
saucy-0.13.1 lib/generators/saucy/features/templates/features/sign_up_coupon.feature
saucy-0.13.0 lib/generators/saucy/features/templates/features/sign_up_coupon.feature
saucy-0.12.5 lib/generators/saucy/features/templates/features/sign_up_coupon.feature
saucy-0.12.4 lib/generators/saucy/features/templates/features/sign_up_coupon.feature
saucy-0.12.3 lib/generators/saucy/features/templates/features/sign_up_coupon.feature
saucy-0.12.2 lib/generators/saucy/features/templates/features/sign_up_coupon.feature
saucy-0.12.1 lib/generators/saucy/features/templates/features/sign_up_coupon.feature
saucy-0.12.0 lib/generators/saucy/features/templates/features/sign_up_coupon.feature
saucy-0.11.5 lib/generators/saucy/features/templates/features/sign_up_coupon.feature
saucy-0.11.3 lib/generators/saucy/features/templates/features/sign_up_coupon.feature
saucy-0.11.2 lib/generators/saucy/features/templates/features/sign_up_coupon.feature