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

bin/rake cucumber encounters ActiveRecord exception #14

Closed bikle2 closed 11 years ago

bikle2 commented 12 years ago

Hello World.

I am working with this commit:

https://github.com/RailsApps/rails3-devise-rspec-cucumber/commit/8c1a712f7de4e1b6ffb5a7f2e45a577d14f0c4ca

I added 3 gems to the Gemfile:

gem 'pg' gem "thin" gem "heroku"

I enhanced the database.yml so I have this: adapter: postgresql instead of adapter: sqlite3

I then tried this:

bundle exec rake cucumber

The first 2 scenarios pass.

The 3rd gives exception:

Couldn't find User with id=sign_out (ActiveRecord::RecordNotFound) ./app/controllers/users_controller.rb:5:in `show'

I'm not sure if this a bug in Devise or RailsApps / rails3-devise-rspec-cucumber

DanielKehoe commented 11 years ago

Resolved.