Permalink
Browse files

fixed ActiveModel::Lint typos [#3236 state:resolved]

Signed-off-by: Joshua Peek <josh@joshpeek.com>
  • Loading branch information...
1 parent 762d761 commit e2d0b0ee61c5a8c2626abb5ac1029b48ec1965eb @laktek laktek committed with josh Sep 21, 2009
Showing with 3 additions and 4 deletions.
  1. +3 −4 activemodel/lib/active_model/lint.rb
@@ -2,7 +2,7 @@
require "test/unit/ui/console/testrunner"
# You can test whether an object is compliant with the ActiveModel API by
-# calling ActiveModel::Compliance.test(object). It will emit a Test::Unit
+# calling ActiveModel::Lint.test(object). It will emit a Test::Unit
# output that tells you whether your object is fully compliant, or if not,
# which aspects of the API are not implemented.
#
@@ -13,7 +13,6 @@
#
# Objects you pass in are expected to return a compliant object from a
# call to to_model. It is perfectly fine for to_model to return self.
-
module ActiveModel
module Lint
def self.test(object, verbosity = 2, output = STDOUT)
@@ -59,7 +58,7 @@ def test_new_record?
end
def test_destroyed?
- assert @object.respond_to?(:new_record?), "The model should respond to destroyed?"
+ assert @object.respond_to?(:destroyed?), "The model should respond to destroyed?"
assert_boolean "destroyed?", @object.destroyed?
end
@@ -93,4 +92,4 @@ def test_errors_full_messages
include Errors
end
end
-end
+end

0 comments on commit e2d0b0e

Please sign in to comment.