Sha256: d5db75d2636d5da53866b4e4c9de2abb43d6c581b23dc5653a79bf74c5f7f733
Contents?: true
Size: 594 Bytes
Versions: 10
Compression:
Stored size: 594 Bytes
Contents
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 eql(0) end end
Version data entries
10 entries across 10 versions & 1 rubygems