提交 3f92a824 编写于 作者: A Anton Davydov

Fix typo in AM I18n validation test name [skip ci]

上级 ec69a45f
......@@ -98,7 +98,7 @@ def test_errors_full_messages_uses_format
# validates_length_of :within too short w/ mocha
COMMON_CASES.each do |name, validation_options, generate_message_options|
test "validates_length_of for :withing on generated message when too short #{name}" do
test "validates_length_of for :within on generated message when too short #{name}" do
Person.validates_length_of :title, validation_options.merge(within: 3..5)
@mock_generator.expect(:call, nil, [:title, :too_short, generate_message_options.merge(count: 3)])
@person.errors.stub(:generate_message, @mock_generator) do
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册