test/test_sources.rb in pdd-0.20.3 vs test/test_sources.rb in pdd-0.20.4

- old
+ new

@@ -80,9 +80,16 @@ list = PDD::Sources.new(dir).exclude('b/c/d/second.txt').fetch assert_equal 1, list.size end end + def test_excludes_recursively + in_temp(['a/first.txt', 'b/c/second.txt', 'b/c/d/third.txt']) do |dir| + list = PDD::Sources.new(dir).exclude('**/*').fetch + assert_equal 0, list.size + end + end + def test_fails_with_verbose_output in_temp do |dir| File.write(File.join(dir, 'z1.txt'), "\x40todobroken\n") error = assert_raises PDD::Error do PDD::Sources.new(dir).fetch[0].puzzles