mirror of https://github.com/rails/rails
AMo::Error#initialize takes keyword arguments
This commit is contained in:
parent
51a7422c9f
commit
24e509ecaf
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue