Skip to content

Commit

Permalink
Use model_class instead of requiring user to pass in class
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Johnson <bjohnson@binarylogic.com>
  • Loading branch information
Chad Ingram authored and binarylogic committed Dec 31, 2008
1 parent 6cf169e commit 9e85bf2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions shoulda_macros/authlogic.rb
Expand Up @@ -2,9 +2,10 @@

module Authlogic
module ShouldaMacros
def should_be_authentic(model)
def should_be_authentic
klass = model_class
should "acts as authentic" do
assert model.respond_to?(:acts_as_authentic_config)
assert klass.respond_to?(:acts_as_authentic_config)
end
end
end
Expand Down

0 comments on commit 9e85bf2

Please sign in to comment.