Sha256: 8aadbd756eaa61a756c06fd039fee97b4beb2436598fe1734bc20d4813251ea6

Contents?: true

Size: 983 Bytes

Versions: 24

Compression:

Stored size: 983 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
    "newjs_theme_generators"
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

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