spec/universal_entry_spec.rb in vfs-0.3.12 vs spec/universal_entry_spec.rb in vfs-0.3.13

- old
+ new

@@ -1,43 +1,43 @@ 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 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.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 \ No newline at end of file