Sha256: 3499bf75b759c6ec1b9f1fb0ae87ecd0c708043d0b1c12bdcd1f199d18c62396
Contents?: true
Size: 747 Bytes
Versions: 3
Compression:
Stored size: 747 Bytes
Contents
# frozen_string_literal: true RSpec.describe "hanami db", type: :integration do describe "version" do it "prints database version" do with_project do versions = generate_migrations hanami "db create" hanami "db migrate" hanami "db version" expect(out).to include(versions.last.to_s) expect(out).to_not include("SELECT * FROM") end end it "prints help message" do with_project do output = <<~OUT Command: hanami db version Usage: hanami db version Description: Print the current migrated version Options: --help, -h # Print this help OUT run_cmd 'hanami db version --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/version_spec.rb |
hanami-2.0.0.beta1.1 | spec/integration/cli/db/version_spec.rb |
hanami-2.0.0.beta1 | spec/integration/cli/db/version_spec.rb |