plataformatec/devise — Issue #1405: Blank params for user when testing in Rails 3 + Capybara
Author: cheeyeo
Created: 2011-10-28 23:01:18+00:00
State: open

Hi guys

great work on devise but I have an issue which I am not sure what or why its happening

I'm using Devise 1.4.9 in Rails 3.0.10 and Capybara 1.1.1 and Cucumber Rails 1.1.1

I followed your example on the wiki on testing in Cucumber with the following scenario:

Scenario Outline: Creating a new account
Given I am not authenticated
When I go to the sign up page
And I fill in "user_email" with ""
And I fill in "user_password" with ""
And I fill in "user_password_confirmation" with ""
And I press "Sign up"
Then I should see "logged in as "

Examples:
| email | password |
| testing@man.net | secretpass |
| foo@bar.com | fr33z3 |

It keeps failing as the user params email and password are not passed to the Devise::Registrations controller

i tried various approaches to rename the user_email and password fields but to no avail