Still having problems with this issue. My failing scenario is:
Feature: Authentication
This scenario fails on the last step I am getting a flash message of
"You need to sign in or sign up before continuing." Rather than
"You have signed up successfully. However, we could not sign you in
because your account is unconfirmed."
which is the correct message according to test/integration/
registerable_test.rb -
test 'a guest user should be able to sign up successfully and be
blocked by confirmation'
Scenario: Register new user
Given I am not signed in
And I am on the sign up page
And I fill in the following:
| Email | fr...@foo.bar |
| Password | password |
| Password confirmation | password |
When I press "Sign up"
Then a new user should get created with the following details:
| email |
| fr...@foo.bar |
And I should receive an email with the following details:
| subject |
body |
| Confirmation instructions | You can confirm your account
through the link below |
And I should be on the sign in page
And I should see "You have signed up successfully. However, we
could not sign you in because your account is unconfirmed."
I have pushed a bare bones project to
https://github.com/JohnPlummer/test_confirm.
I presume I must have something wrong in the config but can't for the
life of me work out what.
John