From 3916ffc91d4be5b4f2f19bc7c7fde1fec97ad6d8 Mon Sep 17 00:00:00 2001 From: Noah Paessel Date: Tue, 18 Jan 2011 20:37:18 -0500 Subject: [PATCH] Be polite; add new test to bottom of test file. --- test/fakefs_test.rb | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/test/fakefs_test.rb b/test/fakefs_test.rb index fa7527d..39e46b0 100644 --- a/test/fakefs_test.rb +++ b/test/fakefs_test.rb @@ -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 @@ -1618,6 +1610,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))