Sha256: 47dbc8119f2f79b1e85ca5b2bc9c61fcbab6fcd227a74227e2a63b57a929aa61

Contents?: true

Size: 623 Bytes

Versions: 1

Compression:

Stored size: 623 Bytes

Contents

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

= 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:

  requie '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 implementations with Shoulda 2.10.1


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
afurmanov-clicase-0.1.7 README.rdoc