Sha256: 9a86845210f5f386e67ce05dd1ecb239c603291be7b9464c6755ea00dc5ea914
Contents?: true
Size: 641 Bytes
Versions: 18
Compression:
Stored size: 641 Bytes
Contents
require 'simplecov' require 'simplecov-rcov' SimpleCov.start SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter $:.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
18 entries across 18 versions & 1 rubygems