lib/vfs/storages/specification.rb in vfs-0.3.8 vs lib/vfs/storages/specification.rb in vfs-0.3.9
- old
+ new
@@ -99,18 +99,18 @@
end
it 'each' do
@storage.open_fs do |fs|
list = {}
- fs.each_entry(@tmp_dir){|path, type| list[path] = type}
+ fs.each_entry(@tmp_dir, nil){|path, type| list[path] = type}
list.should be_empty
dir, file = "#{@tmp_dir}/dir", "#{@tmp_dir}/file"
fs.create_dir(dir)
fs.write_file(file, false){|w| w.call 'something'}
list = {}
- fs.each_entry(@tmp_dir){|path, type| list[path] = type}
+ fs.each_entry(@tmp_dir, nil){|path, type| list[path] = type}
list.should == {'dir' => :dir, 'file' => :file}
end
end
# it "upload_directory & download_directory" do
\ No newline at end of file