Displaying 2 results from an estimated 2 matches for "notactivatederror".
2011 Jun 16
2
Authlogic: Trying to login in my Cucumber test - Authlogic::Session::Activation::NotActivatedError
In a Cucumber step definition, I''m trying to login, but I keep getting
this error:
You must activate the Authlogic::Session::Base.controller with a
controller object before creating objects
(Authlogic::Session::Activation::NotActivatedError)
My code:
Given /^I am the logged in (.+) "(.+)"$/ do |role, login|
user = User.create!(
:login => login,
:password => "some_password",
:password_confirmation => "some_password",
:role => role,
:email => "some_email-oHC15RC7J...
2010 Mar 08
0
Instantiating Controller Object on Rails3 for unit testing
Dear all,
I am experiencing this error when doing unit testing:
Authlogic::Session::Activation::NotActivatedError: You must activate
the Authlogic::Session::Base.controller with a controller object
before creating objects
I know this is not an error from Rails but I encounter this when doing
unit testing in Rails. This error happenned because my model has
dependencies to 3rd Party library named Authlogic to g...