/Users/jwebb/src/bigjason/elster/test/streamer_test.rb in elster-0.0.3 vs /Users/jwebb/src/bigjason/elster/test/streamer_test.rb in elster-0.0.5
- old
+ new
@@ -128,6 +128,20 @@
json.key("description", "I am \nmulti\nlined")
json.close
assert_equal "I am \nmulti\nlined", parsed["description"]
end
+
+ def test_boolean_true
+ json.key("works", true)
+ json.close
+
+ assert_equal true, parsed["works"]
+ end
+
+ def test_boolean_false
+ json.key("no_works", false)
+ json.close
+
+ assert_equal false, parsed["no_works"]
+ end
end