mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
lib/minitest/*.rb: Imported minitest 2.0.2 r6207
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
df52785d30
commit
4f00a27fb5
11 changed files with 59 additions and 53 deletions
|
@ -1,3 +1,8 @@
|
|||
Sun Feb 20 05:33:17 2011 Ryan Davis <ryand-ruby@zenspider.com>
|
||||
|
||||
* lib/minitest/*.rb: Imported minitest 2.0.2 r6207.
|
||||
* test/minitest/*: ditto
|
||||
|
||||
Sun Feb 20 02:14:09 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* signal.c (sig_trap): avoid pthread_sigmask(xx, &mask, &mask) usage
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
############################################################
|
||||
# This file is imported from a different project.
|
||||
# DO NOT make modifications in this repo.
|
||||
# File a patch instead and assign it to Ryan Davis
|
||||
############################################################
|
||||
######################################################################
|
||||
# This file is imported from the minitest project.
|
||||
# DO NOT make modifications in this repo. They _will_ be reverted!
|
||||
# File a patch instead and assign it to Ryan Davis.
|
||||
######################################################################
|
||||
|
||||
require 'minitest/unit'
|
||||
require 'minitest/spec'
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
############################################################
|
||||
# This file is imported from a different project.
|
||||
# DO NOT make modifications in this repo.
|
||||
# File a patch instead and assign it to Ryan Davis
|
||||
############################################################
|
||||
######################################################################
|
||||
# This file is imported from the minitest project.
|
||||
# DO NOT make modifications in this repo. They _will_ be reverted!
|
||||
# File a patch instead and assign it to Ryan Davis.
|
||||
######################################################################
|
||||
|
||||
require 'minitest/unit'
|
||||
require 'minitest/spec'
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
############################################################
|
||||
# This file is imported from a different project.
|
||||
# DO NOT make modifications in this repo.
|
||||
# File a patch instead and assign it to Ryan Davis
|
||||
############################################################
|
||||
######################################################################
|
||||
# This file is imported from the minitest project.
|
||||
# DO NOT make modifications in this repo. They _will_ be reverted!
|
||||
# File a patch instead and assign it to Ryan Davis.
|
||||
######################################################################
|
||||
|
||||
class MockExpectationError < StandardError; end
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
############################################################
|
||||
# This file is imported from a different project.
|
||||
# DO NOT make modifications in this repo.
|
||||
# File a patch instead and assign it to Ryan Davis
|
||||
############################################################
|
||||
######################################################################
|
||||
# This file is imported from the minitest project.
|
||||
# DO NOT make modifications in this repo. They _will_ be reverted!
|
||||
# File a patch instead and assign it to Ryan Davis.
|
||||
######################################################################
|
||||
|
||||
require "minitest/unit"
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
############################################################
|
||||
# This file is imported from a different project.
|
||||
# DO NOT make modifications in this repo.
|
||||
# File a patch instead and assign it to Ryan Davis
|
||||
############################################################
|
||||
######################################################################
|
||||
# This file is imported from the minitest project.
|
||||
# DO NOT make modifications in this repo. They _will_ be reverted!
|
||||
# File a patch instead and assign it to Ryan Davis.
|
||||
######################################################################
|
||||
|
||||
#!/usr/bin/ruby -w
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
############################################################
|
||||
# This file is imported from a different project.
|
||||
# DO NOT make modifications in this repo.
|
||||
# File a patch instead and assign it to Ryan Davis
|
||||
############################################################
|
||||
######################################################################
|
||||
# This file is imported from the minitest project.
|
||||
# DO NOT make modifications in this repo. They _will_ be reverted!
|
||||
# File a patch instead and assign it to Ryan Davis.
|
||||
######################################################################
|
||||
|
||||
require 'optparse'
|
||||
|
||||
|
@ -100,7 +100,8 @@ module MiniTest
|
|||
# Fails unless the block returns a true value.
|
||||
|
||||
def assert_block msg = nil
|
||||
assert yield, "Expected block to return true value."
|
||||
msg = message(msg) { "Expected block to return true value" }
|
||||
assert yield, msg
|
||||
end
|
||||
|
||||
##
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
############################################################
|
||||
# This file is imported from a different project.
|
||||
# DO NOT make modifications in this repo.
|
||||
# File a patch instead and assign it to Ryan Davis
|
||||
############################################################
|
||||
######################################################################
|
||||
# This file is imported from the minitest project.
|
||||
# DO NOT make modifications in this repo. They _will_ be reverted!
|
||||
# File a patch instead and assign it to Ryan Davis.
|
||||
######################################################################
|
||||
|
||||
require 'minitest/autorun'
|
||||
require 'minitest/benchmark'
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
############################################################
|
||||
# This file is imported from a different project.
|
||||
# DO NOT make modifications in this repo.
|
||||
# File a patch instead and assign it to Ryan Davis
|
||||
############################################################
|
||||
######################################################################
|
||||
# This file is imported from the minitest project.
|
||||
# DO NOT make modifications in this repo. They _will_ be reverted!
|
||||
# File a patch instead and assign it to Ryan Davis.
|
||||
######################################################################
|
||||
|
||||
require 'minitest/mock'
|
||||
require 'minitest/unit'
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
############################################################
|
||||
# This file is imported from a different project.
|
||||
# DO NOT make modifications in this repo.
|
||||
# File a patch instead and assign it to Ryan Davis
|
||||
############################################################
|
||||
######################################################################
|
||||
# This file is imported from the minitest project.
|
||||
# DO NOT make modifications in this repo. They _will_ be reverted!
|
||||
# File a patch instead and assign it to Ryan Davis.
|
||||
######################################################################
|
||||
|
||||
require 'minitest/spec'
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
############################################################
|
||||
# This file is imported from a different project.
|
||||
# DO NOT make modifications in this repo.
|
||||
# File a patch instead and assign it to Ryan Davis
|
||||
############################################################
|
||||
######################################################################
|
||||
# This file is imported from the minitest project.
|
||||
# DO NOT make modifications in this repo. They _will_ be reverted!
|
||||
# File a patch instead and assign it to Ryan Davis.
|
||||
######################################################################
|
||||
|
||||
require 'stringio'
|
||||
require 'pathname'
|
||||
|
@ -409,8 +409,8 @@ class TestMiniTestUnitTestCase < MiniTest::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_assert_block_triggered
|
||||
util_assert_triggered 'Expected block to return true value.' do
|
||||
@tc.assert_block do
|
||||
util_assert_triggered "blah.\nExpected block to return true value." do
|
||||
@tc.assert_block "blah" do
|
||||
false
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue