test/helper.rb in nanoc-4.1.0a1 vs test/helper.rb in nanoc-4.1.0b1
- old
+ new
@@ -93,14 +93,14 @@
io.write('... <%= @yield %> ...')
end
end
File.open('nanoc.yaml', 'w') do |io|
- io << 'string_pattern_type: legacy' << "\n"
+ io << 'string_pattern_type: legacy' << "\n" if params.fetch(:legacy, true)
io << 'data_sources:' << "\n"
io << ' -' << "\n"
io << ' type: filesystem' << "\n"
- io << ' identifier_type: legacy' << "\n"
+ io << ' identifier_type: legacy' << "\n" if params.fetch(:legacy, true)
end
File.open('Rules', 'w') { |io| io.write(rules_content) }
end
end