Sha256: d64f3648f9e7f8db3540501b934c8442bd65f43f6b7a233ded827564f6b54d9b

Contents?: true

Size: 477 Bytes

Versions: 1

Compression:

Stored size: 477 Bytes

Contents

require 'minitest/autorun'

require './test/helper'

describe 'CLI' do
  describe 'when no arguments are provided' do
    it 'outputs usage' do
      `./bin/verdi`.must_equal Verdi.usage
    end
  end

  describe 'when --help is the only argument' do
    it 'outputs usage' do
      `./bin/verdi --help`.must_equal Verdi.usage
    end
  end

  describe 'when -h is the only argument' do
    it 'outputs usage' do
      `./bin/verdi -h`.must_equal Verdi.usage
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
verdi-0.1.0 test/basic_test.rb