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

* test/fileutils/fileasserts.rb (FileAssertions): separate module.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2011-02-06 03:13:08 +00:00
parent 2eb8b115ea
commit 58195557b2
4 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Sun Feb 6 12:12:59 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/fileutils/fileasserts.rb (FileAssertions): separate module.
Sun Feb 6 11:29:23 2011 Tanaka Akira <akr@fsij.org>
* ext/dbm/dbm.c: parenthesize macro arguments.

View file

@ -7,6 +7,8 @@ class TestFileUtils < Test::Unit::TestCase
end
module TestFileUtils::Clobber
include Test::Unit::FileAssertions
def my_rm_rf(path)
if File.exist?('/bin/rm')
system %Q[/bin/rm -rf "#{path}"]

View file

@ -2,7 +2,7 @@
module Test
module Unit
module Assertions # redefine
module FileAssertions
def _wrap_assertion
yield

View file

@ -8,6 +8,7 @@ require 'test/unit'
class TestFileUtils < Test::Unit::TestCase
TMPROOT = "#{Dir.tmpdir}/fileutils.rb.#{$$}"
include Test::Unit::FileAssertions
end
prevdir = Dir.pwd