Sha256: fe2a3f72cb474dd705281d87a09d9dc0becbf5fc1a5aba24f0e742fb3b704841
Contents?: true
Size: 984 Bytes
Versions: 1
Compression:
Stored size: 984 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.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") 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
newjs-1.0.0 | test/test_install_website_generator.rb |