test/test_pdd.rb in pdd-0.9 vs test/test_pdd.rb in pdd-0.10

- old
+ new

@@ -35,11 +35,11 @@ def test_basic Dir.mktmpdir 'test' do |dir| opts = opts(['-v', '-s', dir, '-e', '**/*.png', '-r', 'max-estimate:15']) File.write(File.join(dir, 'a.txt'), '@todo #55 hello!') matches( - Nokogiri::XML::Document.parse(PDD::Base.new(opts).xml), + Nokogiri::XML(PDD::Base.new(opts).xml), [ '/processing-instruction("xml-stylesheet")[contains(.,".xsl")]', '/puzzles/@version', '/puzzles/@date', '/puzzles[count(puzzle)=1]', @@ -51,10 +51,10 @@ def test_rules_failure Dir.mktmpdir 'test' do |dir| opts = opts(['-v', '-s', dir, '-e', '**/*.png', '-r', 'min-estimate:30']) File.write(File.join(dir, 'a.txt'), '@todo #90 hello!') - assert_raises RuntimeError do + assert_raises PDD::Error do PDD::Base.new(opts).xml end end end