Sha256: c23eecfb0b8d5e2d36ce5213d9daef0bb01ea096b9c130619bd56daffff34e6d

Contents?: true

Size: 488 Bytes

Versions: 8

Compression:

Stored size: 488 Bytes

Contents

# encoding: utf-8

class Nanoc::CLI::Commands::CreateSiteTest < MiniTest::Unit::TestCase

  include Nanoc::TestHelpers

  def test_create_site_with_existing_name
    Nanoc::CLI.run %w( create_site foo )
    assert_raises(SystemExit) 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

8 entries across 8 versions & 1 rubygems

Version Path
nanoc-3.3.7 test/cli/commands/test_create_site.rb
nanoc-3.3.6 test/cli/commands/test_create_site.rb
nanoc-3.3.5 test/cli/commands/test_create_site.rb
nanoc-3.3.4 test/cli/commands/test_create_site.rb
nanoc-3.3.3 test/cli/commands/test_create_site.rb
nanoc-3.3.2 test/cli/commands/test_create_site.rb
nanoc-3.3.1 test/cli/commands/test_create_site.rb
nanoc-3.3.0 test/cli/commands/test_create_site.rb