test/extra/checking/checks/test_stale.rb in nanoc-4.0.0b1 vs test/extra/checking/checks/test_stale.rb in nanoc-4.0.0b2

- old
+ new

@@ -45,11 +45,11 @@ def test_run_excluded with_site do |_site| assert Dir['content/*'].empty? assert Dir['output/*'].empty? - File.open('nanoc.yaml', 'w') { |io| io.write "prune:\n exclude: [ 'excluded.html' ]" } + File.open('nanoc.yaml', 'w') { |io| io.write "string_pattern_type: legacy\nprune:\n exclude: [ 'excluded.html' ]" } File.open('content/index.html', 'w') { |io| io.write('stuff') } File.open('output/excluded.html', 'w') { |io| io.write('stuff') } assert calc_issues.empty? end end @@ -57,10 +57,10 @@ def test_run_excluded_with_broken_config with_site do |_site| assert Dir['content/*'].empty? assert Dir['output/*'].empty? - File.open('nanoc.yaml', 'w') { |io| io.write "prune:\n blah: meh" } + File.open('nanoc.yaml', 'w') { |io| io.write "string_pattern_type: legacy\nprune:\n blah: meh" } File.open('content/index.html', 'w') { |io| io.write('stuff') } File.open('output/excluded.html', 'w') { |io| io.write('stuff') } refute calc_issues.empty? end end