Sha256: e92690a99914f2005291c9cf399b91e48bbb57a80943d7270509cd85684403f0

Contents?: true

Size: 453 Bytes

Versions: 2

Compression:

Stored size: 453 Bytes

Contents

require 'net/ftp'

describe "Net::FTP#passive" do
  it "returns true when self is in passive mode" do
    ftp = Net::FTP.new
    ftp.passive.should be_false

    ftp.passive = true
    ftp.passive.should be_true
  end
end

describe "Net::FTP#passive=" do
  it "sets self to passive mode when passed true" do
    ftp = Net::FTP.new

    ftp.passive = true
    ftp.passive.should be_true

    ftp.passive = false
    ftp.passive.should be_false
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubysl-net-ftp-2.0.1 spec/passive_spec.rb
rubysl-net-ftp-1.0.0 spec/passive_spec.rb