test/cli/commands/test_create_site.rb in nanoc-4.4.4 vs test/cli/commands/test_create_site.rb in nanoc-4.4.5

- old
+ new

@@ -73,10 +73,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 ' + 0xD6.chr + "!\n") } - exception = assert_raises(RuntimeError) do + exception = assert_raises(Nanoc::DataSources::Filesystem::Errors::InvalidEncoding) 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 # Try with encoding = specific