mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
[flori/json] Remove unknown keyword arg from DateTime.parse
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.
b1007dff66
This commit is contained in:
parent
37ea07d59b
commit
a37051ef3b
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ class JSONAdditionTest < Test::Unit::TestCase
|
||||||
|
|
||||||
def test_utc_datetime
|
def test_utc_datetime
|
||||||
now = Time.now
|
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)
|
assert_equal d, parse(d.to_json, :create_additions => true)
|
||||||
d = DateTime.parse(now.utc.to_s) # of = 0
|
d = DateTime.parse(now.utc.to_s) # of = 0
|
||||||
assert_equal d, parse(d.to_json, :create_additions => true)
|
assert_equal d, parse(d.to_json, :create_additions => true)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue