test/cli/commands/test_create_site.rb in nanoc-3.7.4 vs test/cli/commands/test_create_site.rb in nanoc-3.7.5
- old
+ new
@@ -1,9 +1,8 @@
# encoding: utf-8
class Nanoc::CLI::Commands::CreateSiteTest < Nanoc::TestCase
-
def test_create_site_with_existing_name
Nanoc::CLI.run %w( create_site foo )
assert_raises(::Nanoc::Errors::GenericTrivial) do
Nanoc::CLI.run %w( create_site foo )
end
@@ -29,11 +28,10 @@
Encoding.default_external = 'ISO-8859-1' # ew!
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") }
site = Nanoc::Site.new('.')
exception = assert_raises(RuntimeError) do
site.compile
@@ -57,7 +55,6 @@
assert File.file?('content/stylesheet.css')
assert_match(/\/stylesheet.css/, File.read('output/index.html'))
end
end
-
end