Skip to content

Commit

Permalink
Changed model_class to described_type for compatibility with Shoulda …
Browse files Browse the repository at this point in the history
…2.10.2

Signed-off-by: Ben Johnson <bjohnson@binarylogic.com>
  • Loading branch information
shadowmaru authored and binarylogic committed Jul 21, 2009
1 parent b0d65dc commit 70e8a05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shoulda_macros/authlogic.rb
Expand Up @@ -2,7 +2,7 @@ module Authlogic
module ShouldaMacros
class Test::Unit::TestCase
def self.should_be_authentic
klass = model_class
klass = described_type rescue model_class
should "acts as authentic" do
assert klass.new.respond_to?(:password=)
assert klass.new.respond_to?(:valid_password?)
Expand Down

0 comments on commit 70e8a05

Please sign in to comment.