Sha256: e9a7917d33cce132df593986c12eb1f1bd053b7ec3c80af8977ea32496d69158

Contents?: true

Size: 432 Bytes

Versions: 7

Compression:

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

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

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
test-queue-split-0.3.2 test/sample_minitest5.rb
test-queue-split-0.3.1 test/sample_minitest5.rb
test-queue-split-0.3.0 test/sample_minitest5.rb
test-queue-0.2.13 test/sample_minitest5.rb
test-queue-0.2.12 test/sample_minitest5.rb
test-queue-0.2.11 test/sample_minitest5.rb
test-queue-0.2.10 test/sample_minitest5.rb