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:
parent
51a7422c9f
commit
24e509ecaf
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue