Sha256: 08e5d3e9c906102ed054b991673de92a19921a06e9a78aff619a927875a34914
Contents?: true
Size: 1.69 KB
Versions: 3
Compression:
Stored size: 1.69 KB
Contents
# frozen_string_literal: true RSpec.describe "hanami version", type: :integration do context "within a project" do it "prints current version" do with_project do run_cmd 'hanami version', "v#{Hanami::VERSION}" end end it "prints current version with v alias" do with_project do run_cmd 'hanami v', "v#{Hanami::VERSION}" end end it "prints current version with -v alias" do with_project do run_cmd 'hanami -v', "v#{Hanami::VERSION}" end end it "prints current version with --version alias" do with_project do run_cmd 'hanami --version', "v#{Hanami::VERSION}" end end it "prints help message" do with_project do output = <<~OUT Command: hanami version Usage: hanami version Description: Print Hanami version Options: --help, -h # Print this help OUT run_cmd 'hanami version --help', output end end end context "outside of a project" do it 'prints current version' do run_cmd 'hanami version', "v#{Hanami::VERSION}" end it 'prints current version with v alias' do run_cmd 'hanami v', "v#{Hanami::VERSION}" end it 'prints current version with -v alias' do run_cmd 'hanami -v', "v#{Hanami::VERSION}" end it 'prints current version with --version alias' do run_cmd 'hanami --version', "v#{Hanami::VERSION}" end it "prints help message" do output = <<~OUT Command: hanami version Usage: hanami version Description: Print Hanami version Options: --help, -h # Print this help OUT run_cmd 'hanami version --help', output end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hanami-2.0.0.beta2 | spec/integration/cli/version_spec.rb |
hanami-2.0.0.beta1.1 | spec/integration/cli/version_spec.rb |
hanami-2.0.0.beta1 | spec/integration/cli/version_spec.rb |