Sha256: dd771f21ecdcb99ea854bb06d7cea04750e1b95c0671b9566f0e6be57bc686f9

Contents?: true

Size: 477 Bytes

Versions: 8

Compression:

Stored size: 477 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")
    assert stdout.include?("License: MIT"), "expected #{stdout} to include `License: MIT`"
    assert stdout.include?("License file: LICENSE.md"), "expected #{stdout} to include `License file: LICENSE.md`"
    assert_equal 0, status
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
licensee-4.9.0 test/test_licensee_bin.rb
licensee-4.8.0 test/test_licensee_bin.rb
licensee-4.7.4 test/test_licensee_bin.rb
licensee-4.7.3 test/test_licensee_bin.rb
licensee-4.7.2 test/test_licensee_bin.rb
licensee-4.7.1 test/test_licensee_bin.rb
licensee-4.7.0 test/test_licensee_bin.rb
licensee-4.6.0 test/test_licensee_bin.rb