Skip to content

Commit 79a6b24

Browse files
committed
bug fix for new assertions
1 parent fafdb00 commit 79a6b24

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

Casks/gmcurl.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
arch arm: "aarch64", intel: "x64"
33

44
version "1.0.2"
5-
sha256 arm: "f1d45abad41ad792d371d73a8f16f9a60e5ce3af6c91b73fd73cec8eb3d9c3fd",
6-
intel: "aeaf7aa7e01157ec890f9b96b7e7c9aac468396e6517a1e83e2ad6171ef03ba2"
5+
sha256 :no_check
76

87
url "https://curl.gmssl.cn/down/gmcurl_macos_#{arch}"
98
name "gmcurl"

Formula/[email protected]

+1-2
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ def caveats
9494

9595
test do
9696
# Make sure the necessary .cnf file exists, otherwise OpenSSL gets moody.
97-
assert_predicate openssldir/"openssl.cnf", :exist?,
98-
"OpenSSL requires the .cnf file for some functionality"
97+
assert_path_exists openssldir/"openssl.cnf", "OpenSSL requires the .cnf file for some functionality"
9998

10099
# Check OpenSSL itself functions as expected.
101100
(testpath/"testfile.txt").write("This is a test file")

Formula/wlp-webprofile10.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ def caveats
3232

3333
begin
3434
system bin/"wlp-webprofile10", "start"
35-
assert_predicate testpath/"servers/.pid/defaultServer.pid", :exist?
35+
assert_path_exists testpath/"servers/.pid/defaultServer.pid"
3636
ensure
3737
system bin/"wlp-webprofile10", "stop"
3838
end
3939

40-
refute_predicate testpath/"servers/.pid/defaultServer.pid", :exist?
40+
refute_path_exists testpath/"servers/.pid/defaultServer.pid"
4141
assert_match "<feature>webProfile-10.0</feature>", (testpath/"servers/defaultServer/server.xml").read
4242
end
4343
end

Formula/wlp-webprofile8.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ def caveats
3232

3333
begin
3434
system bin/"wlp-webprofile8", "start"
35-
assert_predicate testpath/"servers/.pid/defaultServer.pid", :exist?
35+
assert_path_exists testpath/"servers/.pid/defaultServer.pid"
3636
ensure
3737
system bin/"wlp-webprofile8", "stop"
3838
end
3939

40-
refute_predicate testpath/"servers/.pid/defaultServer.pid", :exist?
40+
refute_path_exists testpath/"servers/.pid/defaultServer.pid"
4141
assert_match "<feature>webProfile-8.0</feature>", (testpath/"servers/defaultServer/server.xml").read
4242
end
4343
end

0 commit comments

Comments
 (0)