Skip to content

Commit

Permalink
Update spec to use keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
flash-gordon committed Jan 3, 2025
1 parent d91b862 commit 89ae3bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/integration/messages/i18n_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def store_errors(**errors)

it "can use a proc for a message" do
store_errors(
predicate_proc: ->(_path, opts) { opts[:text] }
predicate_proc: ->(_path, **opts) { opts[:text] }
)

template, meta = messages[:predicate_proc, path: :path, text: "text"]
Expand Down

0 comments on commit 89ae3bc

Please sign in to comment.