Sha256: 701f5378e4369b2ce18412c65c65fe5b0e893fd9c3260330e09ccb0217b47d0a

Contents?: true

Size: 495 Bytes

Versions: 2

Compression:

Stored size: 495 Bytes

Contents

= CliCase - Macros for testing Ruby command line apps with Shoulda or Test::Unit

When you start thinking about writing ruby command line utility you likely want to start with writing test. Assuming command line parsing is in CliApp#run you prabably want to write something like:

  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


Work in progress...

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
afurmanov-clicase-0.1.5 README.rdoc
afurmanov-clicase-0.1.6 README.rdoc