Sha256: c3a47f0bc135e964ef069d1464dce74fc7c51d7d3c9e125b78a8fe5b9d879542
Contents?: true
Size: 456 Bytes
Versions: 1
Compression:
Stored size: 456 Bytes
Contents
require File.expand_path('../spec_helper', __FILE__) describe "A Runner" do it "should show a help text when invoked without a command and options" do @runner = Saga::Runner.new([]) @runner.expects(:puts).with(@runner.parser.to_s) @runner.run end it "should show a help test when the -h option is used" do @runner = Saga::Runner.new(%w(-h)) @runner.expects(:puts).at_least(1) @runner.stubs(:exit) @runner.run end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
saga-0.1.0 | test/saga_runner_spec.rb |