Sha256: d7a45ba6be2b61a1906ae55957645b46ab57e17f6081c9445ba225ab9e445223
Contents?: true
Size: 580 Bytes
Versions: 1
Compression:
Stored size: 580 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 eql(0) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
licensee-9.12.0 | spec/licensee/commands/version_spec.rb |