Displaying 1 result from an estimated 1 matches for "user_sessions_controller_spec".
2010 Nov 15
0
Problem testing Authlogic UserSession
...I have the following:
user.rb
class User < ActiveRecord::Base
acts_as_authentic do |config|
config.login_field :email
config.ignore_blank_passwords false
config.disable_perishable_token_maintenance true
end
end
user_session.rb
class UserSession < Authlogic::Session::Base
end
user_sessions_controller_spec.rb
require ''spec_helper''
def user_session_create
@user = Factory.create(:user)
@user_session = UserSession.create(:email => @user.email, :password =>
@user.password)
end
describe UserSessionsController do
before(:each) do
:activate_authlogic
end
describe &qu...