提交 aac9d2ca 编写于 作者: S Santiago Pastorino

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

fix typo in validations callbacks test
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册