Skip to content

Commit

Permalink
Fix a JSON spec
Browse files Browse the repository at this point in the history
  • Loading branch information
meh committed Oct 21, 2013
1 parent 0ae511b commit 443adc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/opal/json/ext_spec.rb
Expand Up @@ -3,7 +3,7 @@
describe "Hash#to_json" do
it "returns a string of all key and value pairs" do
{}.to_json.should == "{}"
{"a" => 1, "b" => 2}.to_json.should == '{"a": 1, "b": 2}'
{"a" => 1, "b" => 2}.to_json.should == '{"a":1, "b":2}'

hash = {"a" => 1, "b" => false, "c" => nil, "d" => true}
JSON.parse(hash.to_json).should == hash
Expand Down

0 comments on commit 443adc1

Please sign in to comment.