1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Imported minitest 1.7.1 r5835

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ryan 2010-09-01 08:40:53 +00:00
parent 09fb7189ec
commit ee9e8f82d4
5 changed files with 392 additions and 208 deletions

View file

@ -55,7 +55,7 @@ Object.infect_with_assertions(:must, :wont,
/_in_/ => '_be_within_',
/_operator/ => '_be',
/_includes/ => '_include',
/(must|wont)_(.*_of|nil|empty)/ => '\1_be_\2',
/(must|wont)_(.*_of|nil|silent|empty)/ => '\1_be_\2',
/must_raises/ => 'must_raise')
class Object
@ -84,6 +84,7 @@ module Kernel
stack.push cls
cls.class_eval(&block)
stack.pop
cls
end
private :describe
end
@ -202,6 +203,10 @@ class MiniTest::Spec < MiniTest::Unit::TestCase
# :method: must_be_same_as
# See MiniTest::Assertions#assert_same
##
# :method: must_be_silent
# See MiniTest::Assertions#assert_silent
##
# :method: must_be_within_delta
# See MiniTest::Assertions#assert_in_delta
@ -222,6 +227,10 @@ class MiniTest::Spec < MiniTest::Unit::TestCase
# :method: must_match
# See MiniTest::Assertions#assert_match
##
# :method: must_output
# See MiniTest::Assertions#assert_output
##
# :method: must_raise
# See MiniTest::Assertions#assert_raises
@ -270,6 +279,10 @@ class MiniTest::Spec < MiniTest::Unit::TestCase
# :method: wont_be_within_delta
# See MiniTest::Assertions#refute_in_delta
##
# :method: wont_be_within_delta
# See MiniTest::Assertions#refute_in_delta
##
# :method: wont_be_within_epsilon
# See MiniTest::Assertions#refute_in_epsilon