Sha256: f4c3b154ec7da0eb55958f8d1ac4bb3989b6208baa3c21dc9e95f9cb455f9961
Contents?: true
Size: 592 Bytes
Versions: 2
Compression:
Stored size: 592 Bytes
Contents
require_relative "base_integration_test" include FileUtils class TestCli < BaseIntegrationTest test_that "optparse_plus CLI is properly documented" do When { @stdout, _, __ = optparse_plus "--help" } Then { assert_banner(@stdout, "optparse_plus", takes_options: true, takes_arguments: { app_name: :required }) } And { assert_option(@stdout, "--force") assert_option(@stdout, "--[no-]readme") assert_option(@stdout, "-l", "--license") assert_option(@stdout, "--log-level") } And { assert_oneline_summary(@stdout) } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
optparse-plus-3.0.1 | test/integration/test_cli.rb |
optparse-plus-3.0.0 | test/integration/test_cli.rb |