Sha256: 6dba60a4c63c28bb7bd6a90bd57f1d29dd7e8b718a26e111bddf0216cce36fdb

Contents?: true

Size: 535 Bytes

Versions: 3

Compression:

Stored size: 535 Bytes

Contents

require 'helper'

class TestLicenseeBin < Minitest::Test
  should 'work via commandline' do
    root = File.expand_path '..', File.dirname(__FILE__)
    Dir.chdir root
    stdout, stderr, status = Open3.capture3("#{root}/bin/licensee")

    msg = "expected #{stdout} to include `License: MIT`"
    assert stdout.include?('License: MIT'), msg

    msg = "expected #{stdout} to include `Matched file: LICENSE.md`"
    assert stdout.include?('License file: LICENSE.md'), msg

    assert_equal 0, status
    assert stderr.empty?
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
licensee-8.0.0 test/test_licensee_bin.rb
licensee-7.0.1 test/test_licensee_bin.rb
licensee-7.0.0 test/test_licensee_bin.rb