test/test_pdd.rb in pdd-0.3 vs test/test_pdd.rb in pdd-0.4
- old
+ new
@@ -39,9 +39,10 @@
on 's', 'source', argument: :required
on 'e', 'exclude', as: Array, argument: :required
end
File.write(File.join(dir, 'a.txt'), '@todo #55 hello!')
xml = Nokogiri::XML::Document.parse(PDD::Base.new(opts).xml)
+ assert_equal 1, xml.xpath('/puzzles/@version').size
assert_equal 1, xml.xpath('/puzzles/puzzle[file="a.txt"]').size
end
end
end