Sha256: bc560688aa8cf6bfe0712ac7f7a69cfff96c44b32eaecfd9c05a84c13df75eca

Contents?: true

Size: 790 Bytes

Versions: 10

Compression:

Stored size: 790 Bytes

Contents

require "simplecov"
require "simplecov-rcov"

SimpleCov.start
SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter

$LOAD_PATH.unshift(File.expand_path("../lib")) unless $LOAD_PATH.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 = begin
                          instance_method(method)
                        rescue StandardError
                          false
                        end
      raise "#{method} exists" if already_defined

      define_method(method, &block)
    end
  end
end

require "govspeak"

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
govspeak-6.7.1 test/test_helper.rb
govspeak-6.7.0 test/test_helper.rb
govspeak-6.6.0 test/test_helper.rb
govspeak-6.5.11 test/test_helper.rb
govspeak-6.5.10 test/test_helper.rb
govspeak-6.5.9 test/test_helper.rb
govspeak-6.5.8 test/test_helper.rb
govspeak-6.5.7 test/test_helper.rb
govspeak-6.5.6 test/test_helper.rb
govspeak-6.5.5 test/test_helper.rb