Skip to content

Commit

Permalink
freeciv: use assert_predicate
Browse files Browse the repository at this point in the history
  • Loading branch information
DomT4 authored and ilovezfs committed Oct 7, 2017
1 parent 8dfa71d commit 9c523f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Formula/freeciv.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ def install

test do
system bin/"freeciv-manual"
File.exist? testpath/"manual6.html"
assert_predicate testpath/"manual6.html", :exist?

server = fork do
system bin/"freeciv-server", "-l", testpath/"test.log"
end
sleep 5
Process.kill("TERM", server)
File.exist? testpath/"test.log"
assert_predicate testpath/"test.log", :exist?
end
end

0 comments on commit 9c523f5

Please sign in to comment.