Sha256: 8b39da2231965ce7bb5ce66c0a856854856c1fe73f1cb52fec7092d2ae8aa52b

Contents?: true

Size: 1.01 KB

Versions: 23

Compression:

Stored size: 1.01 KB

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.html.erb 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")
    assert_generated_file("config/website.yml.sample")
  end
  
  private
  def sources
    [ RubiGen::PathSource.new(:test, File.join(File.dirname(__FILE__), "..", generator_path)),
      RubiGen::PathSource.new(:test, File.join(File.dirname(__FILE__), "..", "newjs_theme_generators"))
    ]
  end
  
  def generator_path
    "newjs_generators"
  end
  
  def generator_name
    'install_website'
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
newjs-1.7.4 test/test_install_website_generator.rb
newjs-1.0.2 test/test_install_website_generator.rb
newjs-1.0.3 test/test_install_website_generator.rb
newjs-1.0.1 test/test_install_website_generator.rb
newjs-1.1.0 test/test_install_website_generator.rb
newjs-1.2.0 test/test_install_website_generator.rb
newjs-1.2.1 test/test_install_website_generator.rb
newjs-1.3.0 test/test_install_website_generator.rb
newjs-1.0.4 test/test_install_website_generator.rb
newjs-1.3.2 test/test_install_website_generator.rb
newjs-1.3.3 test/test_install_website_generator.rb
newjs-1.3.4 test/test_install_website_generator.rb
newjs-1.3.5 test/test_install_website_generator.rb
newjs-1.3.6 test/test_install_website_generator.rb
newjs-1.3.1 test/test_install_website_generator.rb
newjs-1.3.7 test/test_install_website_generator.rb
newjs-1.4.1 test/test_install_website_generator.rb
newjs-1.5.0 test/test_install_website_generator.rb
newjs-1.5.1 test/test_install_website_generator.rb
newjs-1.7.0 test/test_install_website_generator.rb