spec/xml/text_spec.rb in roxml-3.3.1 vs spec/xml/text_spec.rb in roxml-4.0.0

- old
+ new

@@ -16,28 +16,28 @@ before do @ref = ROXML::XMLTextRef.new(OpenStruct.new(:name => 'name', :wrapper => 'node', :array? => false), RoxmlObject.new) end it "should return one instance" do - @ref.value_in(@xml).should == "first" + expect(@ref.value_in(@xml)).to eq("first") end it "should output one instance" end context "with :as => []" do before do @ref = ROXML::XMLTextRef.new(OpenStruct.new(:name => 'name', :wrapper => 'node', :array? => true), RoxmlObject.new) end it "should collect all instances" do - @ref.value_in(@xml).should == ["first", "second", "third"] + expect(@ref.value_in(@xml)).to eq(["first", "second", "third"]) end it "should output all instances" do xml = ROXML::XML.new_node('myxml') @ref.update_xml(xml, ["first", "second", "third"]) - xml.to_s.squeeze(' ').should == @xml.root.to_s.squeeze(' ') + expect(xml.to_s.squeeze(' ')).to eq(@xml.root.to_s.squeeze(' ')) end end context "when the namespaces are different" do before do @@ -55,17 +55,17 @@ before do @ref = ROXML::XMLTextRef.new(OpenStruct.new(:name => 'name', :wrapper => 'node', :array? => true, :namespace => '*'), RoxmlObject.new) end it "should collect all instances" do - @ref.value_in(@xml).should == ["first", "second", "third"] + expect(@ref.value_in(@xml)).to eq(["first", "second", "third"]) end it "should output all instances with namespaces" do - pending "Full namespace write support" + skip "Full namespace write support" xml = ROXML::XML.new_node('myxml') @ref.update_xml(xml, ["first", "second", "third"]) - xml.should == @xml.root + expect(xml).to eq(@xml.root) end end end end \ No newline at end of file