Sha256: 77fefbec89a707f769257a0d68d6544aa264ee20a91c1203b519075295d57203

Contents?: true

Size: 650 Bytes

Versions: 4

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

4 entries across 4 versions & 1 rubygems

Version Path
govspeak-6.5.4 test/test_helper.rb
govspeak-6.5.3 test/test_helper.rb
govspeak-6.5.2 test/test_helper.rb
govspeak-6.5.1 test/test_helper.rb