test/compiler_test.rb in json_builder-3.1.5 vs test/compiler_test.rb in json_builder-3.1.6
- old
+ new
@@ -98,6 +98,12 @@
def test_newline_characters
assert_builder_json('{"newline": "hello\nworld"}') do
newline "hello\nworld"
end
end
+
+ def test_tab_characters
+ assert_builder_json('{"tab": "hello\tworld"}') do
+ tab "hello\tworld"
+ end
+ end
end