Skip to content

Commit b3819dc

Browse files
committed
Make generator format test backwards compatible
1 parent c7b3a70 commit b3819dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_json_generate.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def test_generate_pretty
7474
end
7575

7676
def test_generate_custom
77-
state = State.new(space_before: " ", space: " ", indent:"<i>", object_nl: "\n", array_nl: "<a_nl>")
77+
state = State.new(:space_before => " ", :space => " ", :indent => "<i>", :object_nl => "\n", :array_nl => "<a_nl>")
7878
json = generate({1=>{2=>3,4=>[5,6]}}, state)
7979
assert_equal(<<'EOT'.chomp, json)
8080
{

0 commit comments

Comments
 (0)