Sha256: 4af3f063072ddeb32eee02ea5c54ba6d58743b8ca246f9440b9daf91357e1fa0

Contents?: true

Size: 1.19 KB

Versions: 4

Compression:

Stored size: 1.19 KB

Contents

Feature: Email-spec example

In order to help alleviate email testing in apps
As a email-spec contributor I a newcomer
Should be able to easily adopt email-spec in their app by following this example

Scenario: A new person signs up declaratively
      Given I am at "/"
      And no emails have been sent
      When I fill in "Email" with "quentin@example.com"
      And I press "Sign up"
      Then "quentin@example.com" should receive 1 email
      And "quentin@example.com" should have 1 email
      And "foo@bar.com" should not receive an email
      When "quentin@example.com" opens the email with subject "Account confirmation"
      Then I should see "confirm" in the email
      And I should see "Account confirmation" in the subject
      When I follow "confirm" in the email
      Then I should see "Confirm your new account"


Scenario: I sign up imperatively
      Given I am at "/"
      And no emails have been sent
      When I fill in "Email" with "quentin@example.com"
      And I press "Sign up"
      And I should receive an email
      When I open the email
      Then I should see "confirm" in the email
      When I follow "confirm" in the email
      Then I should see "Confirm your new account"



Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
bmabey-email_spec-0.0.5 spec/rails_root/features/example.feature
bmabey-email_spec-0.0.6 spec/rails_root/features/example.feature
bmabey-email_spec-0.0.7 examples/rails_root/features/example.feature
mischa-email_spec-0.0.4 spec/rails_root/features/example.feature