Be polite; add new test to bottom of test file.

This commit is contained in:
Noah Paessel 2011-01-18 20:37:18 -05:00
parent f366142c64
commit a51767db52

View File

@ -3,14 +3,6 @@ require "test_helper"
class FakeFSTest < Test::Unit::TestCase
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
FakeFS.activate!
FileSystem.clear
@ -1586,6 +1578,15 @@ class FakeFSTest < Test::Unit::TestCase
def test_deactivating_returns_true
assert_equal true, FakeFS.deactivate!
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)
RealFile.expand_path(File.join(RealFile.dirname(__FILE__), fname))