lib/vfs/storages/specification.rb in vfs-0.1.0 vs lib/vfs/storages/specification.rb in vfs-0.1.1

- old
+ new

@@ -18,10 +18,12 @@ it 'should respond to :local?' do @storage.open_fs{|fs| fs.should respond_to(:local?)} end + it 'should respond to :host' + it 'should have root dir' do @storage.open_fs do |fs| fs.attributes('/').subset(:file, :dir).should == {file: false, dir: true} end end @@ -97,18 +99,18 @@ end it 'each' do @storage.open_fs do |fs| list = {} - fs.each(@tmp_dir){|path, type| list[path] = type} + fs.each_entry(@tmp_dir){|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(@tmp_dir){|path, type| list[path] = type} + fs.each_entry(@tmp_dir){|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