I’m trying to use authlogic and factory_girl with rspec and I am
getting an error I don’t understand. Basically I have this failing
it “should succeed in creating a user from a factory” do
testuser = Factory.create(:user)
When I stop in the debugger I see this:
(rdb:1) testuser.should be_valid
NoMethodError Exception: undefined method `handling_predicate!’ for
My (limited) understanding of rSpec is that if the “testuser.valid?”
works then “testuser.should be_valid” should work as well. I’m
confused because its not working.
Can someone help me understand what is going on here?
I am using the following gem versions:
I have uninstalled/ reinstalled rspec, rspec-rails and rerun
script/generate rspec letting it overwrite everything.
Gist with full terminal output from running the spec and files: