1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

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