Sha256: 3612af90ff6a2f616860e405505a236e5a457e05b8d0ee25a59cccd8de547551

Contents?: true

Size: 1.42 KB

Versions: 2

Compression:

Stored size: 1.42 KB

Contents

Feature: Email-spec errors example

In order to help alleviate email testing in apps
As a email-spec contributor I a newcomer
Should be able to easily determine where I have gone wrong
These scenarios should fail with helpful messages

    Scenario: I fail to receive an email
      Given I am at "/"
      And no emails have been sent
      When I fill in "Email" with "example@example.com"
      And I press "Sign up"
      And I should receive an email
      When "example@example.com" opens the email with subject "no email"

    Scenario: I fail to receive an email with the expected link
      Given I am at "/"
      And no emails have been sent
      When I fill in "Email" with "example@example.com"
      And I press "Sign up"
      And I should receive an email
      When I open the email
      When I follow "link that doesn't exist" in the email

    Scenario: I attempt to operate on an email that is not opened
      Given I am at "/"
      And no emails have been sent
      When I fill in "Email" with "example@example.com"
      And I press "Sign up"
      And I should receive an email
      When I follow "confirm" in the email

    Scenario: I attempt to check out an unopened email
      Given I am at "/"
      And no emails have been sent
      When I fill in "Email" with "example@example.com"
      And I press "Sign up"
      Then I should see "confirm" in the email
      And I should see "Account confirmation" in the subject



Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
bmabey-email_spec-0.3.0 examples/rails_root/features/errors.feature
email_spec-0.3.0 examples/rails_root/features/errors.feature