test/xml_test.rb in representable-2.3.0 vs test/xml_test.rb in representable-2.4.0.rc1

- old
+ new

@@ -102,24 +102,24 @@ end describe "XML::Binding#build_for" do it "returns AttributeBinding" do - assert_kind_of XML::Binding::Attribute, XML::Binding.build_for(Def.new(:band, :as => "band", :attribute => true), nil) + assert_kind_of XML::Binding::Attribute, XML::Binding.build_for(Def.new(:band, :as => "band", :attribute => true)) end it "returns Binding" do - assert_kind_of XML::Binding, XML::Binding.build_for(Def.new(:band, :class => Hash), nil) - assert_kind_of XML::Binding, XML::Binding.build_for(Def.new(:band, :as => :content), nil) + assert_kind_of XML::Binding, XML::Binding.build_for(Def.new(:band, :class => Hash)) + assert_kind_of XML::Binding, XML::Binding.build_for(Def.new(:band, :as => :content)) end it "returns CollectionBinding" do - assert_kind_of XML::Binding::Collection, XML::Binding.build_for(Def.new(:band, :collection => :true), nil) + assert_kind_of XML::Binding::Collection, XML::Binding.build_for(Def.new(:band, :collection => :true)) end it "returns HashBinding" do - assert_kind_of XML::Binding::Hash, XML::Binding.build_for(Def.new(:band, :hash => :true), nil) + assert_kind_of XML::Binding::Hash, XML::Binding.build_for(Def.new(:band, :hash => :true)) end end describe "DCI" do @@ -385,10 +385,10 @@ include Representable::XML property :name self.representation_wrap = :song end - let (:decorator) { rpr = representer; Class.new(Representable::Decorator) { include rpr } } + let (:decorator) { rpr = representer; Class.new(Representable::Decorator) { include Representable::XML; include rpr } } describe "XML::Collection" do describe "with contained objects" do representer!(:module => Representable::XML::Collection) do items :class => Song, :extend => SongRepresenter \ No newline at end of file