Be polite; add new test to bottom of test file.
This commit is contained in:
parent
2e55319dc0
commit
3916ffc91d
@ -3,14 +3,6 @@ require "test_helper"
|
|||||||
class FakeFSTest < Test::Unit::TestCase
|
class FakeFSTest < Test::Unit::TestCase
|
||||||
include FakeFS
|
include FakeFS
|
||||||
|
|
||||||
def test_split
|
|
||||||
assert File.respond_to? :split
|
|
||||||
filename = "/this/is/what/we/expect.txt"
|
|
||||||
path,filename = File.split(filename)
|
|
||||||
assert_equal path, "/this/is/what/we"
|
|
||||||
assert_equal filename, "expect.txt"
|
|
||||||
end
|
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
FakeFS.activate!
|
FakeFS.activate!
|
||||||
FileSystem.clear
|
FileSystem.clear
|
||||||
@ -1619,6 +1611,15 @@ class FakeFSTest < Test::Unit::TestCase
|
|||||||
assert_equal true, FakeFS.deactivate!
|
assert_equal true, FakeFS.deactivate!
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_split
|
||||||
|
assert File.respond_to? :split
|
||||||
|
filename = "/this/is/what/we/expect.txt"
|
||||||
|
path,filename = File.split(filename)
|
||||||
|
assert_equal path, "/this/is/what/we"
|
||||||
|
assert_equal filename, "expect.txt"
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
def here(fname)
|
def here(fname)
|
||||||
RealFile.expand_path(File.join(RealFile.dirname(__FILE__), fname))
|
RealFile.expand_path(File.join(RealFile.dirname(__FILE__), fname))
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user