Sha256: 87ea3a3eb7717727eb2ab75260e2b7595c0f85c59bc1c94d255e75d7048f29a0

Contents?: true

Size: 983 Bytes

Versions: 20

Compression:

Stored size: 983 Bytes

Contents

require File.join(File.dirname(__FILE__), "test_generator_helper.rb")

class TestInstallWebsiteGenerator < Test::Unit::TestCase
  include RubiGen::GeneratorTestHelper

  def setup
    bare_setup
  end
  
  def teardown
    bare_teardown
  end
  
  def test_generator_without_options
    name = "myapp"
    run_generator(generator_name, [name], sources)
    
    %w[index.txt index.html template.rhtml stylesheets/screen.css javascripts/rounded_corners_lite.inc.js].each do |file|
      assert_generated_file("website/#{file}")
    end
    assert_generated_file("script/txt2html")
    assert_generated_file("tasks/website.rake")
  end
  
  private
  def sources
    [ RubiGen::PathSource.new(:test, File.join(File.dirname(__FILE__), "..", generator_path)),
      RubiGen::PathSource.new(:test, File.join(File.dirname(__FILE__), "..", "newgem_theme_generators"))
    ]
  end
  
  def generator_path
    "newgem_generators"
  end
  
  def generator_name
    'install_website'
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
newgem-0.13.1 test/test_install_website_generator.rb
newgem-0.13.2 test/test_install_website_generator.rb
newgem-0.13.4 test/test_install_website_generator.rb
newgem-0.13.3 test/test_install_website_generator.rb
newgem-0.14.2 test/test_install_website_generator.rb
newgem-0.14.1 test/test_install_website_generator.rb
newgem-0.15.0 test/test_install_website_generator.rb
newgem-0.13.5 test/test_install_website_generator.rb
newgem-0.14.0 test/test_install_website_generator.rb
newgem-0.16.0 test/test_install_website_generator.rb
newgem-0.19.0 test/test_install_website_generator.rb
newgem-0.16.1 test/test_install_website_generator.rb
newgem-0.17.0 test/test_install_website_generator.rb
newgem-0.17.1 test/test_install_website_generator.rb
newgem-0.18.0 test/test_install_website_generator.rb
newgem-0.19.1 test/test_install_website_generator.rb
newgem-0.20.0 test/test_install_website_generator.rb
newgem-0.20.1 test/test_install_website_generator.rb
newgem-0.21.0 test/test_install_website_generator.rb
newgem-0.22.0 test/test_install_website_generator.rb