Sha256: 8be4224406b491357386224575edc08a85a33fc0719a1512361ffb3f1f392264

Contents?: true

Size: 460 Bytes

Versions: 1

Compression:

Stored size: 460 Bytes

Contents

require 'minitest/unit'

class MiniTestEqual < MiniTest::Unit::TestCase
  def test_equal
    assert_equal 1, 1
  end
end

500.times do |i|
  Object.const_set("MiniTestSleep#{i}", Class.new(MiniTest::Unit::TestCase) 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

class MiniTestFailure < MiniTest::Unit::TestCase
  def test_fail
    assert_equal 0, 1
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
test-queue-0.2.0 test/sample_test.rb