Sha256: 7036a8f01591843421b46f37333bcf0a9dee68edba8d39fdea07a4b8c860c7fd

Contents?: true

Size: 420 Bytes

Versions: 9

Compression:

Stored size: 420 Bytes

Contents

require 'rubygems'
require 'shoulda'
require File.dirname(__FILE__) + '/../test'

class CliShouldaSpecificTest < Test::Unit::TestCase
  run_command_line_as {CliApp.run}
  
  context "outer" do
    run_with_options ["--option", "OUTER"] do 
      assert_out_contains /OUTER/
    end
    context "inner" do
      run_with_options ["--option", "INNER"] do 
        assert_out_contains /INNER/
      end
    end
  end
end


Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
afurmanov-clicase-0.1.10 test/shoulda/cli_test.rb
afurmanov-clicase-0.1.11 test/shoulda/cli_test.rb
afurmanov-clicase-0.1.5 test/shoulda/cli_test.rb
afurmanov-clicase-0.1.6 test/shoulda/cli_test.rb
afurmanov-clicase-0.1.7 test/shoulda/cli_test.rb
afurmanov-clicase-0.1.8 test/shoulda/cli_test.rb
afurmanov-clicase-0.1.9 test/shoulda/cli_test.rb
fkocherga-cmd_line_test-0.1.2 test/shoulda/cli_test.rb
fkocherga-cmd_line_test-0.1.3 test/shoulda/cli_test.rb