Skip to content
Browse files

Merge pull request #7143 from accessd/fix-typo-callbacks-test

fix typo in validations callbacks test
  • Loading branch information...
2 parents 14a1df1 + f35f6ab commit aac9d2ca43c796efcc60089e8f4ee184bf6a3b57 @spastorino spastorino committed Jul 24, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 activemodel/test/cases/validations/callbacks_test.rb
View
4 activemodel/test/cases/validations/callbacks_test.rb
@@ -20,7 +20,7 @@ def set_before_validation_marker; self.history << 'before_validation_marker'; en
def set_after_validation_marker; self.history << 'after_validation_marker' ; end
end
-class DogValidtorsAreProc < Dog
+class DogValidatorsAreProc < Dog
before_validation { self.history << 'before_validation_marker' }
after_validation { self.history << 'after_validation_marker' }
end
@@ -49,7 +49,7 @@ def test_before_validation_and_after_validation_callbacks_should_be_called
end
def test_before_validation_and_after_validation_callbacks_should_be_called_with_proc
- d = DogValidtorsAreProc.new
+ d = DogValidatorsAreProc.new
d.valid?
assert_equal ['before_validation_marker', 'after_validation_marker'], d.history
end

0 comments on commit aac9d2c

Please sign in to comment.
Something went wrong with that request. Please try again.