Sha256: ee54c25aa812e6d13a1ed3c8cfc7b3cda5772e33ed099daafa80361b718f69ca
Contents?: true
Size: 544 Bytes
Versions: 2
Compression:
Stored size: 544 Bytes
Contents
require 'net/ftp' describe "Net::FTP#return_code" do before(:each) do @ftp = Net::FTP.new end it "outputs a warning and returns a newline" do lambda do @ftp.return_code.should == "\n" end.should complain("warning: Net::FTP#return_code is obsolete and do nothing\n") end end describe "Net::FTP#return_code=" do before(:each) do @ftp = Net::FTP.new end it "outputs a warning" do lambda { @ftp.return_code = 123 }.should complain("warning: Net::FTP#return_code= is obsolete and do nothing\n") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubysl-net-ftp-2.0.1 | spec/return_code_spec.rb |
rubysl-net-ftp-1.0.0 | spec/return_code_spec.rb |