fakefs/test/fake/file/join_test.rb
2010-12-27 12:36:41 -05:00

19 lines
372 B
Ruby

require "test_helper"
class FileJoin < Test::Unit::TestCase
def setup
FakeFS.activate!
end
def teardown
FakeFS.deactivate!
end
[
["a", "b"], ["a/", "b"], ["a", "/b"], ["a/", "/b"], ["a", "/", "b"]
].each_with_index do |args, i|
define_method "test_file_join_#{i}" do
assert_equal RealFile.join(args), File.join(args)
end
end
end