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
- Fork it ( https://github.com/[my-github-username]/rspec-ftp/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request