Sha256: 2f7e75f9162fd3fcba548b27ca8393793699e9cd7917fd3d79076656ddcf56ad

Contents?: true

Size: 620 Bytes

Versions: 4

Compression:

Stored size: 620 Bytes

Contents

RSpec.describe "`<%= "#{app_name_underscored} #{cmd_name_underscored} #{subcmd_name_underscored}" %>` command", type: :cli do
  it "executes `<%= "#{app_name_underscored} #{cmd_name_underscored} help #{subcmd_name_underscored}" %>` command successfully" do
    output = `<%= "#{app_name_underscored} #{cmd_name_underscored} help #{subcmd_name_underscored}" %>`
    expected_output = <<-OUT
Usage:
  <%= app_name_underscored + ' ' + subcmd_name_underscored + cmd_desc_args %>

Options:
  -h, [--help], [--no-help]  # Display usage information

<%= cmd_desc %>
    OUT

    expect(output).to eq(expected_output)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tty-0.10.0 lib/tty/templates/add/spec/integration/sub_command_spec.rb.tt
tty-0.9.1 lib/tty/templates/add/spec/integration/sub_command_spec.rb.tt
tty-0.8.1 lib/tty/templates/add/spec/integration/sub_command_spec.rb.tt
tty-0.8.0 lib/tty/templates/add/spec/integration/sub_command_spec.rb.tt