Sha256: c7aa50867ee5b37c6285a2ced74df0816be9315b4bf739f0923441418c27dddd

Contents?: true

Size: 579 Bytes

Versions: 14

Compression:

Stored size: 579 Bytes

Contents

# frozen_string_literal: true

RSpec.describe 'version command' do
  let(:command) { ['bundle', 'exec', 'bin/licensee', 'version'] }
  let(:arguments) { [] }
  let(:output) do
    Dir.chdir project_root do
      Open3.capture3(*[command, arguments].flatten)
    end
  end
  let(:parsed_output) { YAML.safe_load(stdout) }
  let(:stdout) { output[0] }
  let(:stderr) { output[1] }
  let(:status) { output[2] }

  it 'returns the version' do
    expect(stdout).to include(Licensee::VERSION)
  end

  it 'Returns a zero exit code' do
    expect(status.exitstatus).to be(0)
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
licensee-9.18.0 spec/licensee/commands/version_spec.rb
licensee-9.17.1 spec/licensee/commands/version_spec.rb
licensee-9.17.0 spec/licensee/commands/version_spec.rb
licensee-9.16.1 spec/licensee/commands/version_spec.rb
licensee-9.16.0 spec/licensee/commands/version_spec.rb
licensee-9.15.3 spec/licensee/commands/version_spec.rb
licensee-9.15.2 spec/licensee/commands/version_spec.rb
licensee-9.15.1 spec/licensee/commands/version_spec.rb
licensee-9.15.0 spec/licensee/commands/version_spec.rb
licensee-9.14.1 spec/licensee/commands/version_spec.rb
licensee-9.14.0 spec/licensee/commands/version_spec.rb
licensee-9.13.2 spec/licensee/commands/version_spec.rb
licensee-9.13.1 spec/licensee/commands/version_spec.rb
licensee-9.13.0 spec/licensee/commands/version_spec.rb