Sha256: 1b8db75a47f187873d723c9516c65622cdc35920a119dc5747d236bde9569283

Contents?: true

Size: 624 Bytes

Versions: 10

Compression:

Stored size: 624 Bytes

Contents

# frozen_string_literal: true

RSpec.describe 'license-path command' do
  let(:command) { ['bundle', 'exec', 'bin/licensee', 'license-path'] }
  let(:arguments) { [project_root] }
  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 license path' do
    expect(stdout).to match(File.join(project_root, 'LICENSE.md'))
  end

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
licensee-9.16.0 spec/licensee/commands/license_path_spec.rb
licensee-9.15.3 spec/licensee/commands/license_path_spec.rb
licensee-9.15.2 spec/licensee/commands/license_path_spec.rb
licensee-9.15.1 spec/licensee/commands/license_path_spec.rb
licensee-9.15.0 spec/licensee/commands/license_path_spec.rb
licensee-9.14.1 spec/licensee/commands/license_path_spec.rb
licensee-9.14.0 spec/licensee/commands/license_path_spec.rb
licensee-9.13.2 spec/licensee/commands/license_path_spec.rb
licensee-9.13.1 spec/licensee/commands/license_path_spec.rb
licensee-9.13.0 spec/licensee/commands/license_path_spec.rb