* 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:
parent
2eb8b115ea
commit
58195557b2
@ -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.
|
||||
|
@ -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}"]
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
module Test
|
||||
module Unit
|
||||
module Assertions # redefine
|
||||
module FileAssertions
|
||||
|
||||
def _wrap_assertion
|
||||
yield
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user