mercury: use assert_predicate instead of File.exist?
This commit is contained in:
parent
9182d3a746
commit
96a5d6caf2
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ class Mercury < Formula
|
|||
io.write_string("#{test_string}", IOState_in, IOState_out).
|
||||
EOS
|
||||
system "#{bin}/mmc", "--make", "hello"
|
||||
assert File.exist?(testpath/"hello")
|
||||
assert_predicate testpath/"hello", :exist?
|
||||
|
||||
assert_equal test_string, shell_output("#{testpath}/hello")
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue