Sha256: d90225761abb803f840497e3b77cbcfe8a0e6495e02a6cb97491a4ac9621ebd8

Contents?: true

Size: 793 Bytes

Versions: 24

Compression:

Stored size: 793 Bytes

Contents

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

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

  def setup
    bare_teardown
  end
  
  def teardown
    bare_teardown
  end
  
  def test_with_no_options
    run_generator('test_unit', %w[AccountReceiver], sources)
    assert_generated_file("test/test_account_receiver.rb")
    assert_generated_class("test/test_account_receiver", "Test::Unit::TestCase") do
      assert_has_method("setup")
      assert_has_method("teardown")
      assert_has_method("test_truth")
    end
  end

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

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
rubigen-1.5.8 test/test_generate_builtin_test_unit.rb
rubigen-1.5.7 test/test_generate_builtin_test_unit.rb
rubigen-1.5.6 test/test_generate_builtin_test_unit.rb
rubigen-1.5.5 test/test_generate_builtin_test_unit.rb
rubigen-1.5.4 test/test_generate_builtin_test_unit.rb
rubigen-1.5.3 test/test_generate_builtin_test_unit.rb
rubigen-1.0.7 test/test_generate_builtin_test_unit.rb
rubigen-1.2.3 test/test_generate_builtin_test_unit.rb
rubigen-1.3.0 test/test_generate_builtin_test_unit.rb
rubigen-1.2.2 test/test_generate_builtin_test_unit.rb
rubigen-1.2.4 test/test_generate_builtin_test_unit.rb
rubigen-1.3.1 test/test_generate_builtin_test_unit.rb
rubigen-1.3.2 test/test_generate_builtin_test_unit.rb
rubigen-1.3.3 test/test_generate_builtin_test_unit.rb
rubigen-1.1.0 test/test_generate_builtin_test_unit.rb
rubigen-1.0.8 test/test_generate_builtin_test_unit.rb
rubigen-1.1.1 test/test_generate_builtin_test_unit.rb
rubigen-1.2.0 test/test_generate_builtin_test_unit.rb
rubigen-1.2.1 test/test_generate_builtin_test_unit.rb
rubigen-1.4.0 test/test_generate_builtin_test_unit.rb