#88 ✓resolved
Mike Breen

should_be_authentic shoulda macro gives a false failure

Reported by Mike Breen | April 12th, 2009 @ 09:07 PM

the asserts need to be called on an instance of klass:

def self.should_be_authentic
  klass = model_class
  should "acts as authentic" do
    assert klass.new.respond_to?(:password=)
    assert klass.new.respond_to?(:valid_password?)
  end
end

I fixed this in my fork:

http://github.com/hardbap/authlo...

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Object based authentication solution that handles all of the non sense for you. It's as easy as ActiveRecord is with a database.

People watching this ticket

Pages