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_equal 0, status end end