Skip to content

Commit 252faf2

Browse files
authored
fix "assert_predicate" (#1976)
1 parent 224ed63 commit 252faf2

34 files changed

+50
-50
lines changed

Formula/abyss-explorer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def install
2626

2727
test do
2828
assert_predicate bin/"abyss-explorer", :executable?
29-
assert_predicate libexec/"ABySS-explorer.jar", :exist?
29+
assert_path_exists libexec/"ABySS-explorer.jar"
3030
# This test fails on CI, though it succeeds locally.
3131
assert_match "Build", shell_output("#{bin}/abyss-explorer --version") unless ENV["HOMEBREW_GITHUB_ACTIONS"]
3232
end

Formula/alfred.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ def install
3535
system "#{bin}/alfred", "qc", "-r", testpath/"example/E.coli.fa.gz",
3636
"-j", testpath/"ecoli.json.gz",
3737
testpath/"example/E.coli.cram"
38-
assert_predicate testpath/"ecoli.json.gz", :exist?
38+
assert_path_exists testpath/"ecoli.json.gz"
3939
end
4040
end

Formula/alphafill.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def install
5656
system "#{bin}/alphafill", "process", "--config", "#{testpath}/alphafill.conf",
5757
"#{prefix}/test/afdb-v4/P2/AF-P29373-F1-model_v4.cif.gz",
5858
"#{testpath}/out.cif.gz"
59-
assert_predicate testpath/"out.cif.gz", :exist?
59+
assert_path_exists testpath/"out.cif.gz"
6060
assert_match "RETINOIC ACID", shell_output("gunzip -c #{testpath}/out.cif.gz")
6161
end
6262
end

Formula/barrnap.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ def install
3030
assert_match "Name=16S_rRNA", shell_output("#{bin}/barrnap -q --kingdom mito #{prefix}/examples/mitochondria.fna")
3131
out = testpath/"hits.fa"
3232
system "#{bin}/barrnap", "--outseq", out, "#{prefix}/examples/small.fna"
33-
assert_predicate out, :exist?
33+
assert_path_exists out
3434
end
3535
end

Formula/circos.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def install
3737

3838
test do
3939
system bin/"circos", "-conf", libexec/"example/etc/circos.conf", "-debug_group", "summary,timer"
40-
assert_predicate testpath/"circos.png", :exist?
41-
assert_predicate testpath/"circos.svg", :exist?
40+
assert_path_exists testpath/"circos.png"
41+
assert_path_exists testpath/"circos.svg"
4242
end
4343
end

Formula/cluster-picker.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ def install
3838
EOT
3939
# run
4040
assert_match "Reading", shell_output("#{bin}/ClusterPicker #{fa} #{nw} 0.9 2>&1")
41-
assert_predicate testpath/"test_clusterPicks_log.txt", :exist?
41+
assert_path_exists testpath/"test_clusterPicks_log.txt"
4242
end
4343
end

Formula/conform-gt.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def install
2525

2626
test do
2727
assert_predicate bin/"conform-gt", :executable?
28-
assert_predicate libexec/"conform-gt.jar", :exist?
28+
assert_path_exists libexec/"conform-gt.jar"
2929
assert_match "usage: java -jar conform-gt.", shell_output("#{bin}/conform-gt")
3030
end
3131
end

Formula/delly.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ def install
3939
test do
4040
assert_match version.to_s, shell_output("#{bin}/delly --version 2>&1")
4141
system "#{bin}/delly", "call", "-g", prefix/"example/ref.fa", "-o", testpath/"sr.bcf", prefix/"example/sr.bam"
42-
assert_predicate testpath/"sr.bcf", :exist?
42+
assert_path_exists testpath/"sr.bcf"
4343
end
4444
end

Formula/eigensoft.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,21 +78,21 @@ def caveats
7878
cp_r samples/"EIGENSTRAT", testpath
7979
cd "EIGENSTRAT" do
8080
assert_match(/^gc.perl example.chisq example.chisq.GC$/, shell_output("perl example.perl"))
81-
assert_predicate Pathname.pwd/"example.pca", :exist?
82-
assert_predicate Pathname.pwd/"example.pca.evec", :exist?
83-
assert_predicate Pathname.pwd/"example.plot.pdf", :exist?
84-
assert_predicate Pathname.pwd/"example.plot.ps", :exist?
85-
assert_predicate Pathname.pwd/"example.plot.xtxt", :exist?
81+
assert_path_exists Pathname.pwd/"example.pca"
82+
assert_path_exists Pathname.pwd/"example.pca.evec"
83+
assert_path_exists Pathname.pwd/"example.plot.pdf"
84+
assert_path_exists Pathname.pwd/"example.plot.ps"
85+
assert_path_exists Pathname.pwd/"example.plot.xtxt"
8686
end
8787

8888
cp_r samples/"POPGEN", testpath
8989
cd "POPGEN" do
9090
assert_match(/^evec2pca.perl 2 example.evec example.ind example.pca$/, shell_output("perl example.perl"))
91-
assert_predicate Pathname.pwd/"example.pca", :exist?
92-
assert_predicate Pathname.pwd/"example.evec", :exist?
93-
assert_predicate Pathname.pwd/"example.plot.pdf", :exist?
94-
assert_predicate Pathname.pwd/"example.plot.ps", :exist?
95-
assert_predicate Pathname.pwd/"example.plot.xtxt", :exist?
91+
assert_path_exists Pathname.pwd/"example.pca"
92+
assert_path_exists Pathname.pwd/"example.evec"
93+
assert_path_exists Pathname.pwd/"example.plot.pdf"
94+
assert_path_exists Pathname.pwd/"example.plot.ps"
95+
assert_path_exists Pathname.pwd/"example.plot.xtxt"
9696
end
9797
end
9898
end

Formula/falco.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def install
4343
@BCFFFFFHHHCFBHHIJJJICFGIIGIHHG3CEGEBA;@AEGHE:BEB<A@=B@@AAD>:?3>>:ABD5;BDBDACDACDBAC39C>@ACCDDCEEEDD
4444
EOS
4545
system "#{bin}/falco", "#{testpath}/test.fq"
46-
assert_predicate testpath/"summary.txt", :exist?
47-
assert_predicate testpath/"fastqc_report.html", :exist?
46+
assert_path_exists testpath/"summary.txt"
47+
assert_path_exists testpath/"fastqc_report.html"
4848
end
4949
end

0 commit comments

Comments
 (0)