File: attachments.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 (27 lines) | stat: -rw-r--r-- 1,147 bytes parent folder | download
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
Feature: Attachment testing support
  In order for developers to test attachments in emails
  I want to be able to provide working steps which inspect attachments

  Scenario: Email with Attachments
    Given no emails have been sent
    And I go to request attachments be sent to me
    Then I should receive an email
    When I open the email
    Then I should see 2 attachments with the email
    And there should be an attachment named "image.png"
    And there should be an attachment named "document.pdf"
    And attachment 1 should be named "image.png"
    And attachment 2 should be named "document.pdf"
    And there should be an attachment of type "image/png"
    And there should be an attachment of type "application/pdf"
    And attachment 1 should be of type "image/png"
    And attachment 2 should be of type "application/pdf"
    And all attachments should not be blank

  Scenario: Email without Attachments
    Given no emails have been sent
    And I am on the homepage
    And I submit my registration information
    Then I should receive an email
    When I open the email
    Then I should see no attachments with the email