提交 f35f6ab0 编写于 作者: A Accessd

fix typo in callbacks test

上级 14a1df14
......@@ -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.
先完成此消息的编辑!
想要评论请 注册