test/cli/commands/test_compile.rb in nanoc-4.0.0b1 vs test/cli/commands/test_compile.rb in nanoc-4.0.0b2

- old
+ new

@@ -47,19 +47,26 @@ io.write "end\n" io.write "\n" io.write "layout '*', :erb\n" end + File.open('nanoc.yaml', 'w') do |io| + io.write "string_pattern_type: legacy\n" + io.write "prune:\n" + io.write " auto_prune: false\n" + end + File.open('output/stray.html', 'w') do |io| io.write 'I am a stray file and I am about to be deleted!' end assert File.file?('output/stray.html') Nanoc::CLI.run %w( compile ) assert File.file?('output/stray.html') File.open('nanoc.yaml', 'w') do |io| + io.write "string_pattern_type: legacy\n" io.write "prune:\n" io.write " auto_prune: true\n" end assert File.file?('output/stray.html') @@ -90,18 +97,25 @@ io.write "layout '*', :erb\n" end Dir.mkdir('output/excluded_dir') + File.open('nanoc.yaml', 'w') do |io| + io.write "string_pattern_type: legacy\n" + io.write "prune:\n" + io.write " auto_prune: false\n" + end + File.open('output/stray.html', 'w') do |io| io.write 'I am a stray file and I am about to be deleted!' end assert File.file?('output/stray.html') Nanoc::CLI.run %w( compile ) assert File.file?('output/stray.html') File.open('nanoc.yaml', 'w') do |io| + io.write "string_pattern_type: legacy\n" io.write "prune:\n" io.write " auto_prune: true\n" io.write " exclude: [ 'excluded_dir' ]\n" end