RailsApps / rails3-devise-rspec-cucumber

An example Rails 3.2 app with Devise and RSpec and Cucumber.
http://railsapps.github.io/
445 stars 144 forks source link

Cucumber test fails on first run #41

Closed TerryBeyak closed 11 years ago

TerryBeyak commented 11 years ago

I'm not sure if this was your intention, but after installing this app, and running "cucumber", I got four failed tests. They all referred to a user signing up. Then I saw this block in step_definitions/user_steps.rb:

def create_visitor
  @visitor ||= { :name => "Testy McUserton", :email => "example@example.com",
    :password => "please", :password_confirmation => "please" }
end

Which I realized would fail because the password was too short. Was this your intention? I'm fairly new to Cucumber tests, so the logic might have been lost on me.

DanielKehoe commented 11 years ago

Devise recently changed the default password length from 6 to 8. The app hasn't been updated to accommodate the change yet.

DanielKehoe commented 11 years ago

I've revised the app to accommodate the new Devise default password length. All tests pass.