Sha256: bc543a06024e45037d552bedadfc4186e7465e3ec162752b465f5ce83cf57cb9
Contents?: true
Size: 472 Bytes
Versions: 3
Compression:
Stored size: 472 Bytes
Contents
require 'test/unit' require 'rubygems' if RUBY_VERSION != "1.9.1" require 'shoulda' require 'coulda' include Coulda def run_feature(feature) if Object::RUBY_VERSION =~ /^1.9/ result = MiniTest::Unit.autorun else # Assume 1.8.x result = Test::Unit::TestResult.new p = Proc.new {} feature.suite.run(result, &p) end result end def pendings_are_errors Feature.class_eval do def pending(*args) raise Exception.new end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
coulda-0.6.1 | test/test_helper.rb |
coulda-0.6.0 | test/test_helper.rb |
coulda-0.5.5 | test/test_helper.rb |