aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/xmlsh.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2014-05-04 12:12:41 -0700
committerAdam Vandenberg2014-08-01 07:58:10 -0700
commitff86702dd85eab420f6f58e8dcf8375dae4b22b9 (patch)
treee0071c9d3604ab8d311679aa77ce9cce90da962f /Library/Formula/xmlsh.rb
parent1dc876667538fb33ebc9eb30edd3bc9b530592a6 (diff)
downloadhomebrew-ff86702dd85eab420f6f58e8dcf8375dae4b22b9.tar.bz2
use test helpers
Diffstat (limited to 'Library/Formula/xmlsh.rb')
-rw-r--r--Library/Formula/xmlsh.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Formula/xmlsh.rb b/Library/Formula/xmlsh.rb
index caf16792d..5134b87a1 100644
--- a/Library/Formula/xmlsh.rb
+++ b/Library/Formula/xmlsh.rb
@@ -17,8 +17,7 @@ class Xmlsh < Formula
end
test do
- out = `#{bin}/xmlsh -c 'x=<[<foo bar="baz" />]> && echo <[$x/@bar]>'`
- assert_equal "baz\n", out
- assert_equal 0, $?.exitstatus
+ output = shell_output("#{bin}/xmlsh -c 'x=<[<foo bar=\"baz\" />]> && echo <[$x/@bar]>'")
+ assert_equal "baz\n", output
end
end