@@ -10,13 +10,13 @@ def test_json_output
10
10
$:. delete File . dirname ( __FILE__ )
11
11
json = CodeRay . scan ( 'puts "Hello world!"' , :ruby ) . json
12
12
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" } ,
20
20
] , JSON . load ( json )
21
21
ensure
22
22
for path in old_load_paths - $:
0 commit comments