Sha256: 8df652874968cb3ba64a4fb0c84d8da9b2314f332bbb0f7d96de74b37ea84b89
Contents?: true
Size: 791 Bytes
Versions: 1
Compression:
Stored size: 791 Bytes
Contents
require 'spec_helper' describe 'UniversalEntry' do with_test_fs before do @path = test_fs['a/b/c'] end describe 'existence' do it "should check both files and dirs" do @path.should_not exist @path.dir.create @path.should be_dir @path.should exist @path.file.create! @path.should be_file @path.should exist end end describe 'destroying' do it "should destroy both files and dirs" do @path.dir.create @path.should be_dir @path.destroy @path.should_not exist @path.file.create @path.should be_file @path.destroy @path.should_not exist end it "shouldn't raise if file not exist" do @path.destroy end end describe 'copy_to' describe 'move_to' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vfs-0.3.13 | spec/universal_entry_spec.rb |