statik: use assert_predicate instead of File.exist?
This commit is contained in:
parent
566bccd52d
commit
3c0db9727d
1 changed files with 3 additions and 3 deletions
|
@ -58,8 +58,8 @@ class Statik < Formula
|
|||
EOS
|
||||
system bin/"statik"
|
||||
|
||||
assert(File.exist?(testpath/"public/index.html"), "home view was not correctly generated!")
|
||||
assert(File.exist?(testpath/"public/test-post1/index.html"), "test-post1 was not correctly generated!")
|
||||
assert(File.exist?(testpath/"public/test-post2/index.html"), "test-post2 was not correctly generated!")
|
||||
assert_predicate testpath/"public/index.html", :exist?, "home view was not correctly generated!"
|
||||
assert_predicate testpath/"public/test-post1/index.html", :exist?, "test-post1 was not correctly generated!"
|
||||
assert_predicate testpath/"public/test-post2/index.html", :exist?, "test-post2 was not correctly generated!"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue