Sha256: 01cd353dac70419a00488d3b8a0dc2851fbbbe6fa9dac8d2880528380268e961

Contents?: true

Size: 580 Bytes

Versions: 3

Compression:

Stored size: 580 Bytes

Contents

require_relative "base_integration_test"

include FileUtils

class TestCli < BaseIntegrationTest
  test_that "methadone CLI is properly documented" do
    When { @stdout, _, __ = methadone "--help" }
    Then {
      assert_banner(@stdout, "methadone", 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

3 entries across 3 versions & 1 rubygems

Version Path
methadone-2.0.2 test/integration/test_cli.rb
methadone-2.0.1 test/integration/test_cli.rb
methadone-2.0.0 test/integration/test_cli.rb