* 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>
|
Sun Feb 6 11:29:23 2011 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* ext/dbm/dbm.c: parenthesize macro arguments.
|
* ext/dbm/dbm.c: parenthesize macro arguments.
|
||||||
|
@ -7,6 +7,8 @@ class TestFileUtils < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
module TestFileUtils::Clobber
|
module TestFileUtils::Clobber
|
||||||
|
include Test::Unit::FileAssertions
|
||||||
|
|
||||||
def my_rm_rf(path)
|
def my_rm_rf(path)
|
||||||
if File.exist?('/bin/rm')
|
if File.exist?('/bin/rm')
|
||||||
system %Q[/bin/rm -rf "#{path}"]
|
system %Q[/bin/rm -rf "#{path}"]
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
module Test
|
module Test
|
||||||
module Unit
|
module Unit
|
||||||
module Assertions # redefine
|
module FileAssertions
|
||||||
|
|
||||||
def _wrap_assertion
|
def _wrap_assertion
|
||||||
yield
|
yield
|
||||||
|
@ -8,6 +8,7 @@ require 'test/unit'
|
|||||||
|
|
||||||
class TestFileUtils < Test::Unit::TestCase
|
class TestFileUtils < Test::Unit::TestCase
|
||||||
TMPROOT = "#{Dir.tmpdir}/fileutils.rb.#{$$}"
|
TMPROOT = "#{Dir.tmpdir}/fileutils.rb.#{$$}"
|
||||||
|
include Test::Unit::FileAssertions
|
||||||
end
|
end
|
||||||
|
|
||||||
prevdir = Dir.pwd
|
prevdir = Dir.pwd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user