🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

afurmanov-clicase

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

afurmanov-clicase

bundlerRubygems
Version
0.1.11
Version published
Maintainers
1
Created
Source

= CliCase - Gem extending Shoulda or Test::Unit with macros for testing command line apps

= Basic Usage

== Installation sudo gem install afurmanov-clicase

== Example Assuming you decided to write a new command line utility CliApp and you know that CliApp#run is its entry point. You may start with writing simplest test:

requrie 'clicase'

class CliTest < Test::Unit::TestCase run_command_line_as {CliApp.run}

run_with_options ["--help"] do
  assert_successful_run
  assert_out_contains /Usage:/
end

end

= Shortcumings Only tested on the 1.8.7 Ruby implementation and with Shoulda 2.10.1

= License CliCase is released under the MIT license.

FAQs

Package last updated on 11 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts