Sha256: ad9b569eef809008b4ee82943cf6af378b9aa1b577d9e3c2619f93844f6b6e88
Contents?: true
Size: 470 Bytes
Versions: 7
Compression:
Stored size: 470 Bytes
Contents
# 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 end def test_can_compile_new_site Nanoc::CLI.run %w( create_site foo ) FileUtils.cd('foo') do site = Nanoc::Site.new('.') site.load_data site.compile end end end
Version data entries
7 entries across 7 versions & 1 rubygems