зеркало из https://github.com/github/ruby.git
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:
Родитель
df52785d30
Коммит
4f00a27fb5
|
@ -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>
|
Sun Feb 20 02:14:09 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||||
|
|
||||||
* signal.c (sig_trap): avoid pthread_sigmask(xx, &mask, &mask) usage
|
* signal.c (sig_trap): avoid pthread_sigmask(xx, &mask, &mask) usage
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
############################################################
|
######################################################################
|
||||||
# This file is imported from a different project.
|
# This file is imported from the minitest project.
|
||||||
# DO NOT make modifications in this repo.
|
# DO NOT make modifications in this repo. They _will_ be reverted!
|
||||||
# File a patch instead and assign it to Ryan Davis
|
# File a patch instead and assign it to Ryan Davis.
|
||||||
############################################################
|
######################################################################
|
||||||
|
|
||||||
require 'minitest/unit'
|
require 'minitest/unit'
|
||||||
require 'minitest/spec'
|
require 'minitest/spec'
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
############################################################
|
######################################################################
|
||||||
# This file is imported from a different project.
|
# This file is imported from the minitest project.
|
||||||
# DO NOT make modifications in this repo.
|
# DO NOT make modifications in this repo. They _will_ be reverted!
|
||||||
# File a patch instead and assign it to Ryan Davis
|
# File a patch instead and assign it to Ryan Davis.
|
||||||
############################################################
|
######################################################################
|
||||||
|
|
||||||
require 'minitest/unit'
|
require 'minitest/unit'
|
||||||
require 'minitest/spec'
|
require 'minitest/spec'
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
############################################################
|
######################################################################
|
||||||
# This file is imported from a different project.
|
# This file is imported from the minitest project.
|
||||||
# DO NOT make modifications in this repo.
|
# DO NOT make modifications in this repo. They _will_ be reverted!
|
||||||
# File a patch instead and assign it to Ryan Davis
|
# File a patch instead and assign it to Ryan Davis.
|
||||||
############################################################
|
######################################################################
|
||||||
|
|
||||||
class MockExpectationError < StandardError; end
|
class MockExpectationError < StandardError; end
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
############################################################
|
######################################################################
|
||||||
# This file is imported from a different project.
|
# This file is imported from the minitest project.
|
||||||
# DO NOT make modifications in this repo.
|
# DO NOT make modifications in this repo. They _will_ be reverted!
|
||||||
# File a patch instead and assign it to Ryan Davis
|
# File a patch instead and assign it to Ryan Davis.
|
||||||
############################################################
|
######################################################################
|
||||||
|
|
||||||
require "minitest/unit"
|
require "minitest/unit"
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
############################################################
|
######################################################################
|
||||||
# This file is imported from a different project.
|
# This file is imported from the minitest project.
|
||||||
# DO NOT make modifications in this repo.
|
# DO NOT make modifications in this repo. They _will_ be reverted!
|
||||||
# File a patch instead and assign it to Ryan Davis
|
# File a patch instead and assign it to Ryan Davis.
|
||||||
############################################################
|
######################################################################
|
||||||
|
|
||||||
#!/usr/bin/ruby -w
|
#!/usr/bin/ruby -w
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
############################################################
|
######################################################################
|
||||||
# This file is imported from a different project.
|
# This file is imported from the minitest project.
|
||||||
# DO NOT make modifications in this repo.
|
# DO NOT make modifications in this repo. They _will_ be reverted!
|
||||||
# File a patch instead and assign it to Ryan Davis
|
# File a patch instead and assign it to Ryan Davis.
|
||||||
############################################################
|
######################################################################
|
||||||
|
|
||||||
require 'optparse'
|
require 'optparse'
|
||||||
|
|
||||||
|
@ -100,7 +100,8 @@ module MiniTest
|
||||||
# Fails unless the block returns a true value.
|
# Fails unless the block returns a true value.
|
||||||
|
|
||||||
def assert_block msg = nil
|
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
|
end
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
############################################################
|
######################################################################
|
||||||
# This file is imported from a different project.
|
# This file is imported from the minitest project.
|
||||||
# DO NOT make modifications in this repo.
|
# DO NOT make modifications in this repo. They _will_ be reverted!
|
||||||
# File a patch instead and assign it to Ryan Davis
|
# File a patch instead and assign it to Ryan Davis.
|
||||||
############################################################
|
######################################################################
|
||||||
|
|
||||||
require 'minitest/autorun'
|
require 'minitest/autorun'
|
||||||
require 'minitest/benchmark'
|
require 'minitest/benchmark'
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
############################################################
|
######################################################################
|
||||||
# This file is imported from a different project.
|
# This file is imported from the minitest project.
|
||||||
# DO NOT make modifications in this repo.
|
# DO NOT make modifications in this repo. They _will_ be reverted!
|
||||||
# File a patch instead and assign it to Ryan Davis
|
# File a patch instead and assign it to Ryan Davis.
|
||||||
############################################################
|
######################################################################
|
||||||
|
|
||||||
require 'minitest/mock'
|
require 'minitest/mock'
|
||||||
require 'minitest/unit'
|
require 'minitest/unit'
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
############################################################
|
######################################################################
|
||||||
# This file is imported from a different project.
|
# This file is imported from the minitest project.
|
||||||
# DO NOT make modifications in this repo.
|
# DO NOT make modifications in this repo. They _will_ be reverted!
|
||||||
# File a patch instead and assign it to Ryan Davis
|
# File a patch instead and assign it to Ryan Davis.
|
||||||
############################################################
|
######################################################################
|
||||||
|
|
||||||
require 'minitest/spec'
|
require 'minitest/spec'
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
############################################################
|
######################################################################
|
||||||
# This file is imported from a different project.
|
# This file is imported from the minitest project.
|
||||||
# DO NOT make modifications in this repo.
|
# DO NOT make modifications in this repo. They _will_ be reverted!
|
||||||
# File a patch instead and assign it to Ryan Davis
|
# File a patch instead and assign it to Ryan Davis.
|
||||||
############################################################
|
######################################################################
|
||||||
|
|
||||||
require 'stringio'
|
require 'stringio'
|
||||||
require 'pathname'
|
require 'pathname'
|
||||||
|
@ -409,8 +409,8 @@ class TestMiniTestUnitTestCase < MiniTest::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_assert_block_triggered
|
def test_assert_block_triggered
|
||||||
util_assert_triggered 'Expected block to return true value.' do
|
util_assert_triggered "blah.\nExpected block to return true value." do
|
||||||
@tc.assert_block do
|
@tc.assert_block "blah" do
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Загрузка…
Ссылка в новой задаче