Sha256: 73cdc8a2767042c42118f5eff35591f610a8f3fe864c203084290a35ce6da0c1

Contents?: true

Size: 520 Bytes

Versions: 16

Compression:

Stored size: 520 Bytes

Contents

$:.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

16 entries across 16 versions & 1 rubygems

Version Path
govspeak-1.4.0 test/test_helper.rb
govspeak-1.3.0 test/test_helper.rb
govspeak-1.2.5 test/test_helper.rb
govspeak-1.2.4 test/test_helper.rb
govspeak-1.2.3 test/test_helper.rb
govspeak-1.2.2 test/test_helper.rb
govspeak-1.2.0 test/test_helper.rb
govspeak-1.1.0 test/test_helper.rb
govspeak-1.0.1 test/test_helper.rb
govspeak-1.0.0 test/test_helper.rb
govspeak-0.8.18 test/test_helper.rb
govspeak-0.8.17 test/test_helper.rb
govspeak-0.8.16 test/test_helper.rb
govspeak-0.8.15 test/test_helper.rb
govspeak-0.8.14 test/test_helper.rb
govspeak-0.8.13 test/test_helper.rb