Sha256: 0c285b2c4036e4ce06dc7fcd01e4bf7f9f66d14c77c16ad8655c113c51c5bf7c

Contents?: true

Size: 488 Bytes

Versions: 11

Compression:

Stored size: 488 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

if ENV["FAIL"]
  class MiniTestFailure < MiniTest::Unit::TestCase
    def test_fail
      assert_equal 0, 1
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
test-queue-0.7.0 test/samples/sample_minitest4.rb
test-queue-0.6.0 test/samples/sample_minitest4.rb
test-queue-0.5.0 test/samples/sample_minitest4.rb
test-queue-patched-0.4.5 test/samples/sample_minitest4.rb
test-queue-patched-0.4.4 test/samples/sample_minitest4.rb
test-queue-patched-0.4.3 test/samples/sample_minitest4.rb
test-queue-0.4.2 test/samples/sample_minitest4.rb
test-queue-0.4.1 test/samples/sample_minitest4.rb
test-queue-0.4.0 test/samples/sample_minitest4.rb
test-queue-0.3.1 test/samples/sample_minitest4.rb
test-queue-0.3.0 test/samples/sample_minitest4.rb