Sha256: 0fc2f0ee0ccaf1f592a90c7df32622a2fd50a73140133fbd0f19d4dbdc409334
Contents?: true
Size: 522 Bytes
Versions: 9
Compression:
Stored size: 522 Bytes
Contents
$:.unshift(File.expand_path("../lib")) unless $:.include?(File.expand_path("../lib")) require 'bundler' Bundler.setup :default, :development, :test require 'test/unit' class Test::Unit::TestCase class << self def test(name, &block) clean_name = name.gsub(/\s+/,'_') method = "test_#{clean_name.gsub(/\s+/,'_')}".to_sym already_defined = instance_method(method) rescue false raise "#{method} exists" if already_defined define_method(method, &block) end end end require 'govspeak'
Version data entries
9 entries across 9 versions & 1 rubygems