file-roller: fix test crash without window server (#4330)

`file-roller --version` dies when not logged into the macOS GUI with
```
  *** -[__NSArray0 objectAtIndex:]: index 0 beyond bounds for empty
  NSArray
```

So use `--help` instead.
This commit is contained in:
ilovezfs 2016-08-29 08:27:16 -07:00 committed by GitHub
parent ac546d92a5
commit 7b735d640b

View file

@ -53,6 +53,6 @@ class FileRoller < Formula
end
test do
assert_match version.to_s, shell_output("#{bin}/file-roller --version 2>&1")
system bin/"file-roller", "--help"
end
end