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

Version Path
govspeak-6.5.0 test/test_helper.rb
govspeak-6.4.0 test/test_helper.rb
govspeak-6.3.0 test/test_helper.rb
govspeak-6.2.1 test/test_helper.rb
govspeak-6.2.0 test/test_helper.rb
govspeak-6.1.1 test/test_helper.rb
govspeak-6.1.0 test/test_helper.rb
govspeak-6.0.0 test/test_helper.rb
govspeak-5.9.1 test/test_helper.rb
govspeak-5.9.0 test/test_helper.rb
govspeak-5.8.0 test/test_helper.rb
govspeak-5.7.1 test/test_helper.rb
govspeak-5.7.0 test/test_helper.rb