Sha256: 806f8c3e857116ed1edcb9e9d8a24a3969711183612430177909663f5ddbb8e4

Contents?: true

Size: 833 Bytes

Versions: 20

Compression:

Stored size: 833 Bytes

Contents

require File.join(File.dirname(__FILE__), "test_generator_helper.rb")

class TestGenerateBuiltinApplication < Test::Unit::TestCase
  include RubiGen::GeneratorTestHelper

  def setup
    bare_setup
  end
  
  def teardown
    bare_teardown
  end
  
  def test_ruby_app
    run_generator('ruby_app', [APP_ROOT], sources)
    assert_generated_file("Rakefile")
    assert_generated_file("README.txt")
    assert_generated_file("lib/#{PROJECT_NAME}.rb")
    assert_generated_file("test/test_helper.rb")
    assert_generated_file("script/generate")
    assert_generated_file("script/destroy")
    
    assert_generated_module("lib/#{PROJECT_NAME}")
  end

  private
  def sources
    [RubiGen::PathSource.new(:test, File.join(File.dirname(__FILE__),"..", generator_path))
    ]
  end
  
  def generator_path
    "app_generators"
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
rubigen-1.0.3 test/test_generate_builtin_application.rb
rubigen-1.0.1 test/test_generate_builtin_application.rb
rubigen-1.0.4 test/test_generate_builtin_application.rb
rubigen-1.0.2 test/test_generate_builtin_application.rb
rubigen-1.2.0 test/test_generate_builtin_application.rb
rubigen-1.0.5 test/test_generate_builtin_application.rb
rubigen-1.3.0 test/test_generate_builtin_application.rb
rubigen-1.2.2 test/test_generate_builtin_application.rb
rubigen-1.0.8 test/test_generate_builtin_application.rb
rubigen-1.1.0 test/test_generate_builtin_application.rb
rubigen-1.0.6 test/test_generate_builtin_application.rb
rubigen-1.0.7 test/test_generate_builtin_application.rb
rubigen-1.2.3 test/test_generate_builtin_application.rb
rubigen-1.2.4 test/test_generate_builtin_application.rb
rubigen-1.3.2 test/test_generate_builtin_application.rb
rubigen-1.3.3 test/test_generate_builtin_application.rb
rubigen-1.2.1 test/test_generate_builtin_application.rb
rubigen-1.3.1 test/test_generate_builtin_application.rb
rubigen-1.1.1 test/test_generate_builtin_application.rb
rubigen-1.3.4 test/test_generate_builtin_application.rb