Sha256: c269cd472b80e25013bac09a2813799fcf9f432eee250148893066eb80019a24
Contents?: true
Size: 561 Bytes
Versions: 3
Compression:
Stored size: 561 Bytes
Contents
require 'helper' include FunWith::Files class TestRootPath < Test::Unit::TestCase should "add a root to a module" do mod = Module.new path = File.join("/", "usr", "bin") rootify_and_test( mod, path ) end should "add a root to an object" do obj = Object.new path = File.join("/", "usr", "bin") rootify_and_test( obj, path ) end def rootify_and_test( obj, path ) RootPath.rootify( obj, path ) assert obj.respond_to?(:root) assert obj.respond_to?(:set_root_path) assert_equal path, obj.root.to_s end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fun_with_files-0.0.3 | ./test/test_root_path.rb |
fun_with_files-0.0.2 | ./test/test_root_path.rb |
fun_with_files-0.0.1 | ./test/test_root_path.rb |