diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2012-07-24 04:54:53 -0700 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2012-07-24 04:54:53 -0700 |
commit | aac9d2ca43c796efcc60089e8f4ee184bf6a3b57 (patch) | |
tree | 8d43435b4a3c004dd8ac07fd4654f7e90442c611 /activemodel | |
parent | 14a1df14095a761dbf091668185343d9209bc216 (diff) | |
parent | f35f6ab003d419e45ea3d43eef7a88f85324c4ad (diff) | |
download | rails-aac9d2ca43c796efcc60089e8f4ee184bf6a3b57.tar.gz rails-aac9d2ca43c796efcc60089e8f4ee184bf6a3b57.tar.bz2 rails-aac9d2ca43c796efcc60089e8f4ee184bf6a3b57.zip |
Merge pull request #7143 from accessd/fix-typo-callbacks-test
fix typo in validations callbacks test
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/test/cases/validations/callbacks_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/test/cases/validations/callbacks_test.rb b/activemodel/test/cases/validations/callbacks_test.rb index e4f602bd80..0015b3c196 100644 --- a/activemodel/test/cases/validations/callbacks_test.rb +++ b/activemodel/test/cases/validations/callbacks_test.rb @@ -20,7 +20,7 @@ class DogWithMethodCallbacks < Dog 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 @@ class CallbacksWithMethodNamesShouldBeCalled < ActiveModel::TestCase 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 |