Sha256: 370f7a589c00a6f090a8f6f52e86e468be1421c991952d0e09247e0e225bf4c0
Contents?: true
Size: 961 Bytes
Versions: 1
Compression:
Stored size: 961 Bytes
Contents
$:.unshift(File.dirname(__FILE__)+'/../lib/') require 'statsample' require 'minitest/unit' require 'tempfile' require 'tmpdir' require 'shoulda' module MiniTest class Unit class TestCase include Shoulda::InstanceMethods extend Shoulda::ClassMethods include Shoulda::Assertions end end module Assertions alias :assert_raise :assert_raises unless method_defined? :assert_raise alias :assert_not_equal :refute_equal unless method_defined? :assert_not_equal alias :assert_not_same :refute_same unless method_defined? :assert_not_same unless method_defined? :assert_nothing_raised def assert_nothing_raised(msg=nil) msg||="Nothing should be raised, but raised %s" begin yield not_raised=true rescue Exception => e not_raised=false msg=sprintf(msg,e) end assert(not_raised,msg) end end end end MiniTest::Unit.autorun
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
statsample-0.10.0 | test/test_helpers.rb |