aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
authorlakshan <lakshan@web2media.net>2009-09-21 09:49:43 -0500
committerJoshua Peek <josh@joshpeek.com>2009-09-21 09:49:43 -0500
commite2d0b0ee61c5a8c2626abb5ac1029b48ec1965eb (patch)
treeae4fb7f47208a08b6cb209ce5313f7fdce43ce44 /activemodel/lib
parent762d7616738a5f922d864d60dee89c44320d8786 (diff)
downloadrails-e2d0b0ee61c5a8c2626abb5ac1029b48ec1965eb.tar.gz
rails-e2d0b0ee61c5a8c2626abb5ac1029b48ec1965eb.tar.bz2
rails-e2d0b0ee61c5a8c2626abb5ac1029b48ec1965eb.zip
fixed ActiveModel::Lint typos [#3236 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'activemodel/lib')
-rw-r--r--activemodel/lib/active_model/lint.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/activemodel/lib/active_model/lint.rb b/activemodel/lib/active_model/lint.rb
index 46af8ca9de..478f887043 100644
--- a/activemodel/lib/active_model/lint.rb
+++ b/activemodel/lib/active_model/lint.rb
@@ -2,7 +2,7 @@ require "test/unit"
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 @@ require "test/unit/ui/console/testrunner"
#
# 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 @@ module ActiveModel
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 @@ module ActiveModel
include Errors
end
end
-end \ No newline at end of file
+end