diff --git a/lib/nanoc/cli/commands/create-site.rb b/lib/nanoc/cli/commands/create-site.rb index 707f73316e..5a4d738d99 100644 --- a/lib/nanoc/cli/commands/create-site.rb +++ b/lib/nanoc/cli/commands/create-site.rb @@ -252,7 +252,7 @@ def array_to_yaml(array) A Brand New nanoc Site - <%= @item[:title] %> - + diff --git a/test/cli/commands/test_create_site.rb b/test/cli/commands/test_create_site.rb index d0f62ee540..c55d820d1f 100644 --- a/test/cli/commands/test_create_site.rb +++ b/test/cli/commands/test_create_site.rb @@ -19,4 +19,14 @@ def test_can_compile_new_site end end + def test_new_site_has_correct_stylesheets + Nanoc::CLI.run %w( create_site foo ) + FileUtils.cd('foo') do + Nanoc::CLI.run %w( compile ) + + assert File.file?('content/stylesheet.css') + assert_match(/\/stylesheet.css/, File.read('output/index.html')) + end + end + end