Sha256: 318bbd0348b8b1c3f63d5ad1e083c9b59c700653fe929a3ad03f9cf7e6039490
Contents?: true
Size: 586 Bytes
Versions: 7
Compression:
Stored size: 586 Bytes
Contents
require 'minitest/autorun' class MiniTestEqual < MiniTest::Test def test_equal assert_equal 1, 1 end end 30.times do |i| Object.const_set("MiniTestSleep#{i}", Class.new(MiniTest::Test) do define_method('test_sleep') do start = Time.now sleep(0.25) assert_in_delta Time.now-start, 0.25, 0.02 end end) end if ENV["FAIL"] class MiniTestFailure < MiniTest::Test def test_fail assert_equal 0, 1 end end end if ENV["KILL"] class MiniTestKilledFailure < MiniTest::Test def test_kill Process.kill(9, $$) end end end
Version data entries
7 entries across 7 versions & 2 rubygems