Sha256: 4071c72ab93347a0a1c8598cdd5846c6e87118709155a968411a1cc731e609bc

Contents?: true

Size: 675 Bytes

Versions: 21

Compression:

Stored size: 675 Bytes

Contents

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

class TestExecutableGenerator < Test::Unit::TestCase
  include RubiGen::GeneratorTestHelper
  
  def setup
    bare_setup
  end
  
  def teardown
    bare_teardown
  end
  
  def test_generator_without_options
    name = "binname"
    run_generator('executable', [name], sources)
    assert_generated_file("bin/#{name}")
    assert_generated_file("lib/#{name}/cli.rb")
    assert_generated_file("test/test_#{name}_cli.rb")
  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

21 entries across 21 versions & 1 rubygems

Version Path
newgem-1.5.3 test/test_executable_generator.rb
newgem-1.5.0 test/test_executable_generator.rb
newgem-1.5.1 test/test_executable_generator.rb
newgem-1.5.2 test/test_executable_generator.rb
newgem-0.29.0 test/test_executable_generator.rb
newgem-1.0.0 test/test_executable_generator.rb
newgem-1.0.5 test/test_executable_generator.rb
newgem-1.0.4 test/test_executable_generator.rb
newgem-1.0.3 test/test_executable_generator.rb
newgem-1.0.2 test/test_executable_generator.rb
newgem-1.0.1 test/test_executable_generator.rb
newgem-1.0.6 test/test_executable_generator.rb
newgem-1.0.7 test/test_executable_generator.rb
newgem-1.2.0 test/test_executable_generator.rb
newgem-1.1.0 test/test_executable_generator.rb
newgem-1.2.1 test/test_executable_generator.rb
newgem-1.2.2 test/test_executable_generator.rb
newgem-1.2.3 test/test_executable_generator.rb
newgem-1.3.0 test/test_executable_generator.rb
newgem-1.4.1 test/test_executable_generator.rb