Skip to content

Commit

Permalink
Remove unknown keyword arg from DateTime.parse
Browse files Browse the repository at this point in the history
This snuck in while addding tests for the `create_additions`
feature. Caught by JRuby when we added the `limit` option to the
Date/DateTime parsing methods, which causes this to be rejected as
an unknown keyword.
  • Loading branch information
headius committed Dec 1, 2021
1 parent 2db5894 commit b1007df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/json_addition_test.rb
Expand Up @@ -165,7 +165,7 @@ def test_core

def test_utc_datetime
now = Time.now
d = DateTime.parse(now.to_s, :create_additions => true) # usual case
d = DateTime.parse(now.to_s) # usual case
assert_equal d, parse(d.to_json, :create_additions => true)
d = DateTime.parse(now.utc.to_s) # of = 0
assert_equal d, parse(d.to_json, :create_additions => true)
Expand Down

0 comments on commit b1007df

Please sign in to comment.