Test FTP Protocol with Rspec.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
.rspec
.travis.yml
Gemfile
LICENSE.txt
README.md
Rakefile
rspec-ftp.gemspec

README.md

Rspec::Ftp

Test FTP Protocol with Rspec.

Installation

Add this line to your application's Gemfile:

gem 'rspec-ftp'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rspec-ftp

Usage

it "enable to login" do
   expect("server.com").to be_accessible.user("username").pass("password")
end

it "enable to login on active mode" do
   expect("server.com").to be_accessible.user("username").pass("password").active
end

it "enable to login on passive mode" do
   expect("server.com").to be_accessible.user("username").pass("password").passive
end

Contributing

  1. Fork it ( https://github.com/[my-github-username]/rspec-ftp/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request