Sha256: be26d9a98fe1971694109f9a1751edd37f3822c0d003b8d42c217c3bb5f267d7

Contents?: true

Size: 780 Bytes

Versions: 3

Compression:

Stored size: 780 Bytes

Contents

# frozen_string_literal: true

RSpec.describe "hanami generate", type: :integration do
  it "prints subcommands" do
    with_project do
      output = <<~OUT
        Commands:
          hanami generate action APP ACTION                     # Generate an action for app
          hanami generate app APP                               # Generate an app
          hanami generate mailer MAILER                         # Generate a mailer
          hanami generate migration MIGRATION                   # Generate a migration
          hanami generate model MODEL                           # Generate a model
          hanami generate secret [APP]                          # Generate session secret
      OUT

      run_cmd "hanami generate", 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/generate_spec.rb
hanami-2.0.0.beta1.1 spec/integration/cli/generate_spec.rb
hanami-2.0.0.beta1 spec/integration/cli/generate_spec.rb