test/xml_bindings_test.rb in representable-2.1.8 vs test/xml_bindings_test.rb in representable-2.2.0
- old
+ new
@@ -27,11 +27,11 @@
describe "AttributeBinding" do
describe "with plain text items" do
before do
- @property = Representable::XML::Binding::Attribute.new(Representable::Definition.new(:name, :attribute => true), nil, nil)
+ @property = Representable::XML::Binding::Attribute.new(Representable::Definition.new(:name, :attribute => true), nil)
end
it "extracts with #read" do
assert_equal "The Gargoyle", @property.read(Nokogiri::XML("<song name=\"The Gargoyle\" />").root)
end
@@ -44,10 +44,10 @@
end
end
describe "ContentBinding" do
before do
- @property = Representable::XML::Binding::Content.new(Representable::Definition.new(:name, :content => true), nil, nil)
+ @property = Representable::XML::Binding::Content.new(Representable::Definition.new(:name, :content => true), nil)
end
it "extracts with #read" do
assert_equal "The Gargoyle", @property.read(Nokogiri::XML("<song>The Gargoyle</song>").root)
end