Sha256: c091bf002ec01ee3e081cd42a9e725309f917a761f0fd4539cace2264524ecf8
Contents?: true
Size: 443 Bytes
Versions: 2
Compression:
Stored size: 443 Bytes
Contents
require 'net/ftp' describe "Net::FTP#binary" do it "returns true when self is in binary mode" do ftp = Net::FTP.new ftp.binary.should be_true ftp.binary = false ftp.binary.should be_false end end describe "Net::FTP#binary=" do it "sets self to binary mode when passed true" do ftp = Net::FTP.new ftp.binary = true ftp.binary.should be_true ftp.binary = false ftp.binary.should be_false end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubysl-net-ftp-2.0.1 | spec/binary_spec.rb |
rubysl-net-ftp-1.0.0 | spec/binary_spec.rb |