test/cli/commands/test_create_site.rb in nanoc-4.0.0a1 vs test/cli/commands/test_create_site.rb in nanoc-4.0.0a2
- old
+ new
@@ -48,10 +48,16 @@
site.compile
end
assert_equal 'Could not read content/index.html because the file is not valid UTF-8.', exception.message
# Try with encoding = specific
- File.open('nanoc.yaml', 'w') { |io| io.write("meh: true\n") }
+ File.open('nanoc.yaml', 'w') do |io|
+ io.write("pattern_syntax: glob\n")
+ io.write("data_sources:\n")
+ io.write(" -\n")
+ io.write(" type: filesystem_unified\n")
+ io.write(" identifier_style: full\n")
+ end
site = Nanoc::Int::Site.new('.')
site.compile
end
FileUtils
ensure