From 73104e74865b0d0ca003cc034bbe8899880789ad Mon Sep 17 00:00:00 2001 From: Alexander Bayandin Date: Mon, 23 Dec 2019 11:20:37 +0000 Subject: [PATCH] Merge pull request #48083 from bayandin/ungit-fix-test ungit: fix test on Mojave --- Formula/ungit.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Formula/ungit.rb b/Formula/ungit.rb index 5aa93efb53..b8d0a3c923 100644 --- a/Formula/ungit.rb +++ b/Formula/ungit.rb @@ -21,8 +21,6 @@ class Ungit < Formula end test do - require "nokogiri" - server = TCPServer.new(0) port = server.addr[1] server.close @@ -31,7 +29,7 @@ class Ungit < Formula exec bin/"ungit", "--no-launchBrowser", "--port=#{port}", "--autoShutdownTimeout=6000" end sleep 5 - assert_match "ungit", Nokogiri::HTML(shell_output("curl -s 127.0.0.1:#{port}/")).at_css("title").text + assert_includes shell_output("curl -s 127.0.0.1:#{port}/"), "ungit" ensure if ppid Process.kill("TERM", ppid)