Sha256: 2fd600ecae0480ccaf11a53b845c09e331710781f974bab7dbfa9cf75965ee39

Contents?: true

Size: 595 Bytes

Versions: 1

Compression:

Stored size: 595 Bytes

Contents

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

class TestExecutableGenerator < Test::Unit::TestCase
  include RubiGen::GeneratorTestHelper
  
  def setup
    rubygems_setup
  end
  
  def teardown
    rubygems_teardown
  end
  
  def test_generator_without_options
    app_name = "myapp"
    run_generator('executable', [app_name], sources)
    assert_generated_file("bin/#{app_name}")
  end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
newgem-0.13.0 test/test_executable_generator.rb