Im trying to get Rspec to play nice with devise, but getting this
error;
undefined method `serialize_into_session' for Symbol:Class
...devise-0.8.2/lib/devise/test_helpers.rb:69 :in `sign_in'
67 scope ||= Devise::Mapping.find_scope!(resource_or_scope)
68 resource ||= resource_or_scope
69 session["warden.user.#{scope}.key"] =
resource.class.serialize_into_session(resource)
My spec looks like this;
describe OrganizationsController do
include Devise::TestHelpers
before :each do
sign_in :user, @user
end
...
Any ideas?
Glenn
uncaught throw `warden'
...devise-0.8.2/lib/devise/hooks/activatable.rb:15 :in `throw'
...
13 warden.winning_strategy.fail!(record.inactive_message)
14 else
15 throw :warden, :scope => scope, :message => record.inactive_message
16 end
17 end