spec/ftp_spec.rb in carrierwave-ftp-0.2.7 vs spec/ftp_spec.rb in carrierwave-ftp-0.2.8
- old
+ new
@@ -36,11 +36,11 @@
ftp.should_receive(:login).with('test_user', 'test_passwd')
ftp.should_receive(:passive=).with(true)
ftp.should_receive(:mkdir_p).with('~/public_html/uploads')
ftp.should_receive(:chdir).with('~/public_html/uploads')
ftp.should_receive(:put).with(@file.path, 'test.jpg')
- ftp.should_receive(:close)
+ ftp.should_receive(:quit)
@stored = @storage.store!(@file)
end
describe 'after upload' do
before do
@@ -50,11 +50,11 @@
ftp.stub(:login)
ftp.stub(:passive=)
ftp.stub(:mkdir_p)
ftp.stub(:chdir)
ftp.stub(:put)
- ftp.stub(:close)
+ ftp.stub(:quit)
@stored = @storage.store!(@file)
end
it "returns a url based on directory" do
@stored.url.should == 'http://testcarrierwave.dev/uploads/test.jpg'
@@ -73,10 +73,10 @@
@ftp.stub(:login)
@ftp.stub(:passive=)
@ftp.stub(:mkdir_p)
@ftp.stub(:chdir)
@ftp.stub(:put)
- @ftp.stub(:close)
+ @ftp.stub(:quit)
@stored = @storage.store!(@file)
end
it "deletes a file" do
@ftp.should_receive(:chdir).with('~/public_html/uploads')