Sha256: bce2c45692c9defcca92fc829b56c34565954b578ce6dc764a179e966bd28834
Contents?: true
Size: 678 Bytes
Versions: 4
Compression:
Stored size: 678 Bytes
Contents
require 'stringio' require 'test/unit' require File.dirname(__FILE__) + '/../lib/workpattern.rb' module Test::Unit # Used to fix a minor minitest/unit incompatibility in flexmock #AssertionFailedError = Class.new(StandardError) class TestCase def self.must(name, &block) test_name = "test_#{name.gsub(/\s+/,'_')}".to_sym defined = instance_method(test_name) rescue false raise "#{test_name} is already defined in #{self}" if defined if block_given? define_method(test_name, &block) else define_method(test_name) do flunk "No implementation provided for #{name}" end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
workpattern-0.3.2 | test/test_helper.rb |
workpattern-0.3.1 | test/test_helper.rb |
workpattern-0.3.0 | test/test_helper.rb |
workpattern-0.2.0 | test/test_helper.rb |