Sha256: f70403df3afcc5516efc0d0d28b71486598443188cc0e552e79f524bd2098ce0
Contents?: true
Size: 984 Bytes
Versions: 29
Compression:
Stored size: 984 Bytes
Contents
require File.join(File.dirname(__FILE__), "test_generator_helper.rb") class TestPlainThemeGenerator < Test::Unit::TestCase include RubiGen::GeneratorTestHelper def setup bare_setup end def teardown bare_teardown end def test_generator_without_options run_generator('plain_theme', [], sources) %w[template.html.erb 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_theme', [], sources, {:author => "AUTHOR", :email => "EMAIL"}) %w[template.html.erb 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
29 entries across 29 versions & 1 rubygems