require 'spec/spec_helper'
describe "xml" do
before(:each) do
@xml = <<-XML
1
2
XML
end
it "should match_xml" do
@xml.should match_xml(<<-XML)
1
2
XML
end
it "should not match_xml" do
@xml.should_not match_xml(<<-XML)
2
XML
end
it "should match_xml_structure" do
@xml.should match_xml_structure(<<-XML)
2
1
XML
end
it "should not match_xml_structure" do
@xml.should_not match_xml_structure(<<-XML)
2
1
XML
end
end