Sha256: 2ffe1b336df108d34af846b969530cf82054ff646371b4ec42dce121c668f562
Contents?: true
Size: 617 Bytes
Versions: 2
Compression:
Stored size: 617 Bytes
Contents
require 'net/ftp' require File.expand_path('../fixtures/server', __FILE__) describe "Net::FTP#quit" do before(:each) do @server = NetFTPSpecs::DummyFTP.new @server.serve_once @ftp = Net::FTP.new @ftp.connect("localhost", 9921) end after(:each) do @ftp.quit rescue nil @ftp.close @server.stop end it "sends the QUIT command to the server" do @ftp.quit @ftp.last_response.should == "221 OK, bye\n" end it "does not close the socket automagically" do @ftp.quit @ftp.closed?.should be_false end it "returns nil" do @ftp.quit.should be_nil end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubysl-net-ftp-2.0.1 | spec/quit_spec.rb |
rubysl-net-ftp-1.0.0 | spec/quit_spec.rb |