File: errors.feature

package info (click to toggle)
ruby-email-spec 2.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 980 kB
  • sloc: ruby: 2,420; makefile: 3
file content (40 lines) | stat: -rw-r--r-- 1,544 bytes parent folder | download | duplicates (2)
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
30
31
32
33
34
35
36
37
38
39
40
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

  Background:
    Given I am on the homepage
    And no emails have been sent
    When I fill in "Email" with "example@example.com"
    And I press "Sign up"

  Scenario: I fail to open an email with incorrect subject
    Then I should receive an email
    When "example@example.com" opens the email with subject "no email"

  Scenario: I fail to open an email with incorrect subject
    Then I should receive an email
    When "example@example.com" opens the email with subject /no email/

  Scenario: I fail to open an email with incorrect text
    Then I should receive an email
    When "example@example.com" opens the email with text "no email"

  Scenario: I fail to open an email with incorrect text
    Then I should receive an email
    When "example@example.com" opens the email with text /no email/

  Scenario: I fail to receive an email with the expected link
    Then 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
    Then I should receive an email
    When I follow "confirm" in the email

  Scenario: I attempt to check out an unopened email
    Then I should see "confirm" in the email body
    And I should see "Account confirmation" in the email subject