summaryrefslogtreecommitdiff
path: root/test/unit/json_encoder.rb
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2019-11-24 15:23:28 +0100
committerKornelius Kalnbach <murphy@rubychan.de>2019-11-24 15:23:28 +0100
commit54268a946b9bfde526d6d8c28bdb4c8f956eee32 (patch)
tree25e133d24be196a048c1a3ab99651e226a87ad98 /test/unit/json_encoder.rb
parente3228fa76dd8f26ea7e240c67dcd90cea9106d11 (diff)
parentb5b3430d4635682b767c44469e28a70fe234187e (diff)
downloadcoderay-fix-javascript-regexp.tar.gz
Merge branch 'master' into fix-javascript-regexpfix-javascript-regexp
Diffstat (limited to 'test/unit/json_encoder.rb')
-rw-r--r--test/unit/json_encoder.rb14
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 - $: