Sha256: 681aa544b0b262e118c9ea1b27fffe007573c3ad2025d4954e3f7893fea37d48

Contents?: true

Size: 401 Bytes

Versions: 2

Compression:

Stored size: 401 Bytes

Contents

require "optparse_plus/test/base_integration_test"

class TestSomething < OptparsePlus::BaseIntegrationTest
  def test_truth
    stdout,stderr,results = run_app("<%= gemname %>","--help")
    assert_banner(stdout, "<%= gemname %>", takes_options: true, takes_arguments: false)
    assert_option(stdout,"-h", "--help")
    assert_option(stdout,"--version")
    assert_oneline_summary(stdout)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
optparse-plus-3.0.1 templates/test_unit/test/integration/test_cli.rb.erb
optparse-plus-3.0.0 templates/test_unit/test/integration/test_cli.rb.erb