fsw: brew style --fix

This commit is contained in:
Mike McQuaid 2019-10-15 09:00:30 +01:00
parent 58ea2ffe47
commit 2c36ac053f
No known key found for this signature in database
GPG key ID: 48A898132FD8EE70

View file

@ -25,18 +25,16 @@ class Fsw < Formula
end
test do
begin
io = IO.popen("#{bin}/fsw test")
(testpath/"test").write("foo")
sleep 2
rm testpath/"test"
sleep 2
(testpath/"test").write("foo")
sleep 2
assert_equal File.expand_path("test"), io.gets.strip
ensure
Process.kill "INT", io.pid
Process.wait io.pid
end
io = IO.popen("#{bin}/fsw test")
(testpath/"test").write("foo")
sleep 2
rm testpath/"test"
sleep 2
(testpath/"test").write("foo")
sleep 2
assert_equal File.expand_path("test"), io.gets.strip
ensure
Process.kill "INT", io.pid
Process.wait io.pid
end
end