test/member_test.rb in json_builder-3.1.4 vs test/member_test.rb in json_builder-3.1.5

- old
+ new

@@ -41,9 +41,13 @@ def test_double_quoted_value assert_equal '"hello": "\"Hello\" he said"', member('hello', '"Hello" he said').to_s end + def test_single_quoted_value + assert_equal %Q("hello": "hello 'test'!"), member('hello', "hello 'test'!").to_s + end + def test_without_key assert_raises(JSONBuilder::MissingKeyError) { member(nil, true).to_s } end end