test/test_licensee_bin.rb in licensee-6.1.1 vs test/test_licensee_bin.rb in licensee-7.0.0
- old
+ new
@@ -1,12 +1,18 @@
require 'helper'
class TestLicenseeBin < Minitest::Test
- should "work via commandline" do
- root = File.expand_path "..", File.dirname(__FILE__)
+ 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 `Matched file: LICENSE.md`"
+ 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