test/test_parsley.rb in fizx-parsley-ruby-0.2.0 vs test/test_parsley.rb in fizx-parsley-ruby-0.3.0

- old
+ new

@@ -17,9 +17,16 @@ def test_yelp_xml @parsley = Parsley.new(File.read(@let)) out = @parsley.parse(:file => @home, :output => :xml) end + def test_broken + @parsley = Parsley.new("hi" => "no-ns:match(h1)") + assert_raises(ParsleyError) { + @parsley.parse(:file => @page) + } + end + def test_simple @parsley = Parsley.new("hi" => "h1") assert_equal({"hi" => "Nick's Crispy Tacos"}, @parsley.parse(:file => @page)) end \ No newline at end of file