Sha256: bc7fbe88f17c5bbc42e5b106285fd8955c1dc164bd54985bdd916ab33b5c51b1

Contents?: true

Size: 326 Bytes

Versions: 6

Compression:

Stored size: 326 Bytes

Contents

class TestCase < MiniTest::Unit::TestCase

  def self.test(name, &block)
    test_name = "test_#{name.gsub(/\s+/, '_')}".to_sym
    defined = instance_method(test_name) rescue false
    #raise "#{test_name} already defined in #{self}" if defined

    block ||= proc { skip }
    define_method(test_name, &block)
  end

end


Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lazy_load-0.1.3 test/helper.rb
lazy_load-0.1.2 test/helper.rb
lazy_load-0.1.1 test/helper.rb
lazy_load-0.1.0 test/helper.rb
lazy_load-0.0.3 test/helper.rb
lazy_load-0.0.2 test/helper.rb