aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-04-12 09:47:08 +0200
committerXu Cheng2015-04-12 21:16:09 +0800
commit692e2f67e4b647e5432e4a53886ba5cadfc1c761 (patch)
tree8862934c032f26a33fc8cbb25589a417a6c249ad /Library/Formula
parentda27672c6c7ce3d35d05b7c72dddf93f87e6cf56 (diff)
downloadhomebrew-692e2f67e4b647e5432e4a53886ba5cadfc1c761.tar.bz2
nrg2iso: basic test added
Closes #38577. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/nrg2iso.rb13
1 files changed, 8 insertions, 5 deletions
diff --git a/Library/Formula/nrg2iso.rb b/Library/Formula/nrg2iso.rb
index de10c23bc..b1e85941f 100644
--- a/Library/Formula/nrg2iso.rb
+++ b/Library/Formula/nrg2iso.rb
@@ -1,12 +1,15 @@
-require 'formula'
-
class Nrg2iso < Formula
- homepage 'http://gregory.kokanosky.free.fr/v4/linux/nrg2iso.en.html'
- url 'http://gregory.kokanosky.free.fr/v4/linux/nrg2iso-0.4.tar.gz'
- sha1 '26dfa9b489c9165dbc578ef3fddf6e491349df12'
+ homepage "http://gregory.kokanosky.free.fr/v4/linux/nrg2iso.en.html"
+ url "http://gregory.kokanosky.free.fr/v4/linux/nrg2iso-0.4.tar.gz"
+ sha256 "25049d864680ec12bbe31b20597ce8c1ba3a4fe7a7f11e25742b83e2fda94aa3"
def install
system "make"
bin.install "nrg2iso"
end
+
+ test do
+ assert_equal "nrg2iso v#{version}",
+ shell_output("#{bin}/nrg2iso --version").chomp
+ end
end