Sha256: a5b5ef719c4c02c744da0060e2846bbc07fd7e5e71b416857b5b6732c3c0af35

Contents?: true

Size: 494 Bytes

Versions: 8

Compression:

Stored size: 494 Bytes

Contents

# encoding: utf-8

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

  include Nanoc3::TestHelpers

  def test_create_site_with_existing_name
    Nanoc3::CLI.run %w( create_site foo )
    assert_raises(SystemExit) do
      Nanoc3::CLI.run %w( create_site foo )
    end
  end

  def test_can_compile_new_site
    Nanoc3::CLI.run %w( create_site foo )

    FileUtils.cd('foo') do
      site = Nanoc3::Site.new('.')
      site.load_data
      site.compile
    end
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
nanoc3-3.2.4 test/cli/commands/test_create_site.rb
nanoc3-3.2.3 test/cli/commands/test_create_site.rb
nanoc3-3.2.2 test/cli/commands/test_create_site.rb
nanoc3-3.2.1 test/cli/commands/test_create_site.rb
nanoc3-3.2.0 test/cli/commands/test_create_site.rb
nanoc3-3.2.0b3 test/cli/commands/test_create_site.rb
nanoc3-3.2.0b2 test/cli/commands/test_create_site.rb
nanoc3-3.2.0b1 test/cli/commands/test_create_site.rb