test/cli/commands/test_create_site.rb in nanoc-4.1.5 vs test/cli/commands/test_create_site.rb in nanoc-4.1.6

- old
+ new

@@ -72,10 +72,10 @@ Nanoc::CLI.run %w( create_site foo ) FileUtils.cd('foo') do # Try with encoding = default encoding = utf-8 - File.open('content/index.html', 'w') { |io| io.write("Hello <\xD6>!\n") } + File.open('content/index.html', 'w') { |io| io.write('Hello ' + 0xD6.chr + "!\n") } exception = assert_raises(RuntimeError) do Nanoc::Int::SiteLoader.new.new_from_cwd end assert_equal 'Could not read content/index.html because the file is not valid UTF-8.', exception.message