Sha256: b180df97359020413ffa734256f0e04e3645dde17dd784043955c315d06c3e65
Contents?: true
Size: 559 Bytes
Versions: 10
Compression:
Stored size: 559 Bytes
Contents
RSpec.describe 'command line invocation' do let(:command) { ['bundle', 'exec', 'bin/licensee', 'help'] } 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 a zero exit code' do expect(status.exitstatus).to eql(0) end it 'returns the help text' do expect(stdout).to include('Licensee commands:') end end
Version data entries
10 entries across 10 versions & 1 rubygems