Sha256: f3297a7ff7630254f98d81175080bd0e34f8be1199a52cfa39a7451ad3aadce9

Contents?: true

Size: 549 Bytes

Versions: 10

Compression:

Stored size: 549 Bytes

Contents

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 eql(0)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
licensee-9.11.0 spec/licensee/commands/version_spec.rb
licensee-9.10.1 spec/licensee/commands/version_spec.rb
licensee-9.10.0 spec/licensee/commands/version_spec.rb
licensee-9.9.4 spec/licensee/commands/version_spec.rb
licensee-9.9.3 spec/licensee/commands/version_spec.rb
licensee-9.9.2 spec/licensee/commands/version_spec.rb
licensee-9.9.1 spec/licensee/commands/version_spec.rb
licensee-9.9.0 spec/licensee/commands/version_spec.rb
licensee-9.9.0.beta.3 spec/licensee/commands/version_spec.rb
licensee-9.9.0.beta.2 spec/licensee/commands/version_spec.rb