AMo::Error#initialize takes keyword arguments

This commit is contained in:
Akira Matsuda 2019-09-14 10:25:57 +09:00
parent 51a7422c9f
commit 24e509ecaf
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class ErrorTest < ActiveModel::TestCase
test "initialize without type but with options" do
options = { message: "bar" }
error = ActiveModel::Error.new(Person.new, :name, options)
error = ActiveModel::Error.new(Person.new, :name, **options)
assert_equal(options, error.options)
end