test/test_parsley.rb in fizx-parsley-ruby-0.1.2 vs test/test_parsley.rb in fizx-parsley-ruby-0.2.0
- old
+ new
@@ -29,10 +29,10 @@
assert_equal({"hi" => "Nick's Crispy Tacos"}, @parsley.parse(:string => "<html><body><h1>Nick's Crispy Tacos</h1></body></html>"))
end
def test_xml
@parsley = Parsley.new("hi" => "h1")
- xml = "<?xml version=\"1.0\"?>\n<parsley:root xmlns:parsley=\"http://parslets.com/json\"><hi>Nick's Crispy Tacos</hi></parsley:root>\n"
+ xml = "<?xml version=\"1.0\"?>\n<parsley:root xmlns:parsley=\"http://parselets.com/json\"><hi position=\"63\">Nick's Crispy Tacos</hi></parsley:root>\n"
assert_equal(xml, @parsley.parse(:file => @page, :output => :xml))
end
def test_json
@parsley = Parsley.new("hi" => "h1")
\ No newline at end of file