diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2019-11-24 15:20:45 +0100 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2019-11-24 15:20:45 +0100 |
commit | 591c67b65dc4daada24ed1809605e9cbcfb3336b (patch) | |
tree | 5f7cd771ccc8fbc70404aaca89c9c562d9dceffa /test/unit | |
parent | 88ca92c19d51307dd365210b5bc824afdbcc1833 (diff) | |
download | coderay-591c67b65dc4daada24ed1809605e9cbcfb3336b.tar.gz |
fix spaces in JSONEncoderTest
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/json_encoder.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/unit/json_encoder.rb b/test/unit/json_encoder.rb index 4e44a64..a3a8152 100644 --- a/test/unit/json_encoder.rb +++ b/test/unit/json_encoder.rb @@ -10,13 +10,13 @@ class JSONEncoderTest < Test::Unit::TestCase $:.delete File.dirname(__FILE__) json = CodeRay.scan('puts "Hello world!"', :ruby).json assert_equal [ - {"type"=>"text", "text"=>"puts", "kind"=>"ident"}, - {"type"=>"text", "text"=>" ", "kind"=>"space"}, - {"type"=>"block", "action"=>"open", "kind"=>"string"}, - {"type"=>"text", "text"=>"\"", "kind"=>"delimiter"}, - {"type"=>"text", "text"=>"Hello world!", "kind"=>"content"}, - {"type"=>"text", "text"=>"\"", "kind"=>"delimiter"}, - {"type"=>"block", "action"=>"close", "kind"=>"string"}, + { "type" => "text", "text" => "puts", "kind" => "ident" }, + { "type" => "text", "text" => " ", "kind" => "space" }, + { "type" => "block", "action" => "open", "kind" => "string" }, + { "type" => "text", "text" => "\"", "kind" => "delimiter" }, + { "type" => "text", "text" => "Hello world!", "kind" => "content" }, + { "type" => "text", "text" => "\"", "kind" => "delimiter" }, + { "type" => "block", "action" => "close", "kind" => "string" }, ], JSON.load(json) ensure for path in old_load_paths - $: |