spec/aliyun_spec.rb in backup-aliyun-0.1.0 vs spec/aliyun_spec.rb in backup-aliyun-0.1.1

- old
+ new

@@ -126,20 +126,20 @@ ) File.expects(:open).in_sequence(s).with( File.join('/local/path', 'backup.tar.enc-aa'), 'r' ).yields(file) connection.expects(:put).in_sequence(s).with( - File.join('remote/path', 'backup.tar.enc-aa'), file.read + File.join('remote/path', 'backup.tar.enc-aa'), file ) # second yield Backup::Logger.expects(:info).in_sequence(s).with( "Storage::Aliyun uploading 'remote/path/backup.tar.enc-ab'..." ) File.expects(:open).in_sequence(s).with( File.join('/local/path', 'backup.tar.enc-ab'), 'r' ).yields(file) connection.expects(:put).in_sequence(s).with( - File.join('remote/path', 'backup.tar.enc-ab'), file.read + File.join('remote/path', 'backup.tar.enc-ab'), file ) storage.send(:transfer!) end end # describe '#transfer!'