Sha256: d862fe990505f86acd575c88a61468cdcfb9d60272609aa7b33d2743639d4559
Contents?: true
Size: 871 Bytes
Versions: 2
Compression:
Stored size: 871 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 @path.file.create @path.destroy! @path.file.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vfs-0.3.15 | spec/universal_entry_spec.rb |
vfs-0.3.14 | spec/universal_entry_spec.rb |