Sha256: ae61bb705b871fca9bb281ff31548281a356f644d049d4cd83c1669cd4f51b8b
Contents?: true
Size: 827 Bytes
Versions: 2
Compression:
Stored size: 827 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vfs-0.3.12 | spec/universal_entry_spec.rb |
vfs-0.3.11 | spec/universal_entry_spec.rb |