Sha256: a9d396bb46ce816989068bbb182cb8ba550c3f9fd4c2d0acf20a29739b6f29bc
Contents?: true
Size: 969 Bytes
Versions: 1
Compression:
Stored size: 969 Bytes
Contents
require File.join(File.dirname(__FILE__), "test_generator_helper.rb") class TestPlainGenerator < Test::Unit::TestCase include RubiGen::GeneratorTestHelper def setup rubygems_setup end def teardown rubygems_teardown end def test_generator_without_options run_generator('plain', [], sources) %w[template.rhtml stylesheets/screen.css javascripts/rounded_corners_lite.inc.js].each do |file| assert_generated_file("website/#{file}") end end def test_generator_with_author_and_email run_generator('plain', [], sources, {:author => "AUTHOR", :email => "EMAIL"}) %w[template.rhtml stylesheets/screen.css javascripts/rounded_corners_lite.inc.js].each do |file| assert_generated_file("website/#{file}") end end private def sources [RubiGen::PathSource.new(:test, File.join(File.dirname(__FILE__),"..", generator_path)) ] end def generator_path "newgem_theme_generators" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
newgem-0.13.0 | test/test_plain_generator.rb |