Sha256: 73cdc8a2767042c42118f5eff35591f610a8f3fe864c203084290a35ce6da0c1
Contents?: true
Size: 520 Bytes
Versions: 16
Compression:
Stored size: 520 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
16 entries across 16 versions & 1 rubygems