Skip to content

Commit 591c67b

Browse files
committed
fix spaces in JSONEncoderTest
1 parent 88ca92c commit 591c67b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/unit/json_encoder.rb

+7-7
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ def test_json_output
1010
$:.delete File.dirname(__FILE__)
1111
json = CodeRay.scan('puts "Hello world!"', :ruby).json
1212
assert_equal [
13-
{"type"=>"text", "text"=>"puts", "kind"=>"ident"},
14-
{"type"=>"text", "text"=>" ", "kind"=>"space"},
15-
{"type"=>"block", "action"=>"open", "kind"=>"string"},
16-
{"type"=>"text", "text"=>"\"", "kind"=>"delimiter"},
17-
{"type"=>"text", "text"=>"Hello world!", "kind"=>"content"},
18-
{"type"=>"text", "text"=>"\"", "kind"=>"delimiter"},
19-
{"type"=>"block", "action"=>"close", "kind"=>"string"},
13+
{ "type" => "text", "text" => "puts", "kind" => "ident" },
14+
{ "type" => "text", "text" => " ", "kind" => "space" },
15+
{ "type" => "block", "action" => "open", "kind" => "string" },
16+
{ "type" => "text", "text" => "\"", "kind" => "delimiter" },
17+
{ "type" => "text", "text" => "Hello world!", "kind" => "content" },
18+
{ "type" => "text", "text" => "\"", "kind" => "delimiter" },
19+
{ "type" => "block", "action" => "close", "kind" => "string" },
2020
], JSON.load(json)
2121
ensure
2222
for path in old_load_paths - $:

0 commit comments

Comments
 (0)