spec/dir_spec.rb in vfs-0.3.8 vs spec/dir_spec.rb in vfs-0.3.9

- old
+ new

@@ -84,11 +84,11 @@ @path.dir.destroy.should == @path @path.dir.destroy!.should == @path end end - describe 'content' do + describe 'entries, files, dirs' do before do @path.dir('dir').create @path.dir('dir/another_dir').create @path.file('file').create end @@ -99,9 +99,11 @@ @path.entries.to_set.should be_eql([@path.dir('dir'), @path.file('file')].to_set) list = [] @path.entries{|e| list << e} list.to_set.should be_eql([@path.dir('dir'), @path.file('file')].to_set) end + + it "glob search support" it 'should raise error if trying :entries on file' do @path.file('some_file').create -> {@path.dir('some_file').entries}.should raise_error(/File/) end \ No newline at end of file