test/test_method_caching.rb in builder-3.0.1 vs test/test_method_caching.rb in builder-3.0.2
- old
+ new
@@ -26,9 +26,15 @@
def teardown
super
Builder::XmlBase.cache_method_calls = true
end
+ def test_caching_does_not_break_weird_symbols
+ xml = Builder::XmlMarkup.new
+ xml.__send__("work-order", 1)
+ assert_equal "<work-order>1</work-order>", xml.target!
+ end
+
def test_method_call_caching
xml = Builder::XmlMarkup.new
xml.cache_me
def xml.method_missing(*args)