Sha256: 772dd02fc944844547872412a3b9f36180d9ef473f63b0b983314b7dcd4d370c

Contents?: true

Size: 459 Bytes

Versions: 14

Compression:

Stored size: 459 Bytes

Contents

require 'minitest/unit'

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

30.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

14 entries across 14 versions & 2 rubygems

Version Path
test-queue-split-0.3.2 test/sample_minitest4.rb
test-queue-split-0.3.1 test/sample_minitest4.rb
test-queue-split-0.3.0 test/sample_minitest4.rb
test-queue-0.2.13 test/sample_minitest4.rb
test-queue-0.2.12 test/sample_minitest4.rb
test-queue-0.2.11 test/sample_minitest4.rb
test-queue-0.2.10 test/sample_minitest4.rb
test-queue-0.2.9 test/sample_test.rb
test-queue-0.2.7 test/sample_test.rb
test-queue-0.2.6 test/sample_test.rb
test-queue-0.2.5 test/sample_test.rb
test-queue-0.2.4 test/sample_test.rb
test-queue-0.2.2 test/sample_test.rb
test-queue-0.2.1 test/sample_test.rb