mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/test/unit/assertions.rb (Test::Unit::Assertions#assert): reject
non-boolean values. [ruby-core:29868] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
55181301ae
commit
33cf9431da
2 changed files with 15 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Apr 29 12:16:20 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/test/unit/assertions.rb (Test::Unit::Assertions#assert): reject
|
||||
non-boolean values. [ruby-core:29868]
|
||||
|
||||
Thu Apr 29 11:20:53 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* io.c (seek_before_access): renamed. see [ruby-core:29861].
|
||||
|
|
|
@ -10,6 +10,16 @@ module Test
|
|||
obj.pretty_inspect.chomp
|
||||
end
|
||||
|
||||
def assert(result, *args, &b)
|
||||
super(result == true || result == false, "assertion result must be true or false")
|
||||
super
|
||||
end
|
||||
|
||||
def refute(result, *args, &b)
|
||||
super(result == true || result == false, "assertion result must be true or false")
|
||||
super
|
||||
end
|
||||
|
||||
def assert_raise(*args, &b)
|
||||
assert_raises(*args, &b)
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue