scambra/devise_invitable — Issue #170: Can't run mongoid tests
Author: lawso017
Created: 2012-02-20 07:02:13+00:00
State: open

All ActiveRecord tests pass. First tried to run Mongoid tests on a fresh brew install, received message:

undefined method `devise' for User:Class (NoMethodError)

while booting tests (no tests ran).

Tracked this message down to the devise.rb file inside the testing Rails app. Changed the ORM configuration to:

````ruby
require "devise/orm/#{ENV['DEVISE_ORM']}"
````

Then tests ran, but with 65 failures (all NoMethodErrors):

```` ruby
NoMethodError: undefined method `encrypted_password=' for #
````

What am I missing? it was a clean mongo install of version 2.0.4, I can see tests connecting to the server but am not a Mongo expert.

Thanks for a great library...