Sha256: 1a1177fc6754374d79861a005f23d356f9e2e02edd84ce52b15b3c0df8179299
Contents?: true
Size: 650 Bytes
Versions: 13
Compression:
Stored size: 650 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 'minitest/autorun' class Minitest::Test 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
13 entries across 13 versions & 1 rubygems