Sha256: 2ce50eea80b598dafc687cfe22a62ff4199ecb165ae3ec74bf53c47424d82439

Contents?: true

Size: 679 Bytes

Versions: 3

Compression:

Stored size: 679 Bytes

Contents

# frozen_string_literal: true

RSpec.describe "hanami destroy", type: :integration do
  it "prints subcommands" do
    with_project do
      output = <<~OUT
        Commands:
          hanami destroy action APP ACTION                     # Destroy an action from app
          hanami destroy app APP                               # Destroy an app
          hanami destroy mailer MAILER                         # Destroy a mailer
          hanami destroy migration MIGRATION                   # Destroy a migration
          hanami destroy model MODEL                           # Destroy a model
      OUT

      run_cmd "hanami destroy", output, exit_status: 1
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hanami-2.0.0.beta2 spec/integration/cli/destroy_spec.rb
hanami-2.0.0.beta1.1 spec/integration/cli/destroy_spec.rb
hanami-2.0.0.beta1 spec/integration/cli/destroy_spec.rb