hilolih / rspec-ftp

Test FTP Protocol with Rspec.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Test FTP Protocol with Rspec.

License:MIT License


Languages

Language:Ruby 100.0%