Sha256: 4e9903e88fa4a48450b435609726bb8492119df2b03d986344a978b879e09086

Contents?: true

Size: 557 Bytes

Versions: 9

Compression:

Stored size: 557 Bytes

Contents

require_relative "spec_helper"

include CliTester

describe "Command line interface" do
  describe "help" do
    it "shows general help" do
      result = run_command
      expect(result.exit_code).to eq(0)
      expect(result.stdout).to match(/Commands:/)
      expect(result.stderr.empty?).to be(true)
    end

    it "shows help for command" do
      result = run_command(args: ["help", "list"])
      expect(result.exit_code).to eq(0)
      expect(result.stdout).to match("inqlude list")
      expect(result.stderr.empty?).to be(true)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
inqlude-0.12.0 spec/integration/cli_help_spec.rb
inqlude-0.11.0 spec/integration/cli_help_spec.rb
inqlude-0.10.0 spec/integration/cli_help_spec.rb
inqlude-0.9.0 spec/integration/cli_help_spec.rb
inqlude-0.8.0 spec/integration/cli_help_spec.rb
inqlude-0.7.4 spec/integration/cli_help_spec.rb
inqlude-0.7.3 spec/integration/cli_help_spec.rb
inqlude-0.7.2 spec/integration/cli_help_spec.rb
inqlude-0.7.1 spec/integration/cli_help_spec.rb