Sha256: f2b277dae1c7e687cb174c54ebae88401cf0d2032975e8705c52ccd4a758e23f
Contents?: true
Size: 580 Bytes
Versions: 3
Compression:
Stored size: 580 Bytes
Contents
require 'helper' class TestTouching < FunWith::Files::TestCase context "inside a tmpdir" do setup do @dir = FilePath.tmpdir end teardown do @dir.rm assert_equal false, @dir.directory? end should "create a file and link to it" do file = @dir.touch( "Movies", "Basketball", "Shaquille", "cryptohash.dat" ) assert_fwf_filepath file.directory assert_empty_file file link = file.link( file.up.up.up.join( "hash.dat"), :soft => true ) assert link.symlink? end should "create a " end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fun_with_files-0.0.18 | ./test/test_symlinking.rb |
fun_with_files-0.0.15 | ./test/test_symlinking.rb |
fun_with_files-0.0.14 | ./test/test_symlinking.rb |