Sha256: d8b74a7ad74683fc1ed437e33051d9833e7442b4329eb771749ea886c959f1c2
Contents?: true
Size: 690 Bytes
Versions: 3
Compression:
Stored size: 690 Bytes
Contents
# frozen_string_literal: true RSpec.describe "hanami db", type: :integration do describe "prepare" do it "prepares database" do with_project do versions = generate_migrations hanami "db prepare" hanami "db version" expect(out).to include(versions.last.to_s) end end it "prints help message" do with_project do output = <<~OUT Command: hanami db prepare Usage: hanami db prepare Description: Drop, create, and migrate the database (only for development/test) Options: --help, -h # Print this help OUT run_cmd 'hanami db prepare --help', output end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hanami-2.0.0.beta2 | spec/integration/cli/db/prepare_spec.rb |
hanami-2.0.0.beta1.1 | spec/integration/cli/db/prepare_spec.rb |
hanami-2.0.0.beta1 | spec/integration/cli/db/prepare_spec.rb |