mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/fileutils/fileasserts.rb (Test::Unit::Assertions#assert_block):
show the given message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f6b4cba666
commit
f38aad8d87
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Sat Feb 5 03:34:02 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* test/fileutils/fileasserts.rb (Test::Unit::Assertions#assert_block):
|
||||
show the given message.
|
||||
|
||||
Sat Feb 5 02:09:39 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* parse.y (lex_getline, parser_set_encode): set encoding of lines
|
||||
|
|
|
@ -8,6 +8,10 @@ module Test
|
|||
yield
|
||||
end
|
||||
|
||||
def assert_block msg = nil
|
||||
assert yield, msg
|
||||
end
|
||||
|
||||
def assert_same_file(from, to)
|
||||
_wrap_assertion {
|
||||
assert_block("file #{from} != #{to}") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue