Skip to content

Commit

Permalink
Pass hash through as explicit hash to avoid unknown keyword argument …
Browse files Browse the repository at this point in the history
…error.
  • Loading branch information
JonRowe committed Jul 17, 2024
1 parent d9d6f38 commit 1b1534b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/cucumber/multiline_argument/data_table.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ def row(row)
def eof; end
end

NULL_CONVERSIONS = Hash.new(strict: false, proc: ->(cell_value) { cell_value }).freeze
# This is a Hash being initialized with a default value of a Hash, DO NOT REFORMAT TO REMOVE {}
# Future versions [3.4.0+] of ruby will interpret these as keywords and break.
NULL_CONVERSIONS = Hash.new({strict: false, proc: ->(cell_value) { cell_value }}).freeze

# @param data [Core::Test::DataTable] the data for the table
# @param conversion_procs [Hash] see map_column
Expand Down

0 comments on commit 1b1534b

Please sign in to comment.