test/xml_test.rb in representable-0.10.1 vs test/xml_test.rb in representable-0.10.2
- old
+ new
@@ -123,10 +123,14 @@
node = Band.new("Rise Against").to_node
assert_xml_equal "<band><name>Rise Against</name></band>", node.to_s
end
it "respects #representation_wrap=" do
- klass = Class.new(Band)
+ klass = Class.new(Band) do
+ include Representable
+ representable_property :name
+ end
+
klass.representation_wrap = :group
assert_xml_equal "<group><name>Rise Against</name></group>", klass.new("Rise Against").to_node.to_s
end
end