aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/z80dasm.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2014-07-27 16:23:54 -0700
committerAdam Vandenberg2014-07-27 16:23:54 -0700
commita483bcbc929c4e2172906673288139c55bd591c8 (patch)
treeef19fa936b1031d4e572799f6267f8f08bd1444d /Library/Formula/z80dasm.rb
parent38e99436dd27902250c08c69d22ac5b0d057f2cc (diff)
downloadhomebrew-a483bcbc929c4e2172906673288139c55bd591c8.tar.bz2
use binwrite in tests
Diffstat (limited to 'Library/Formula/z80dasm.rb')
-rw-r--r--Library/Formula/z80dasm.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Formula/z80dasm.rb b/Library/Formula/z80dasm.rb
index 3721ca3aa..b08455260 100644
--- a/Library/Formula/z80dasm.rb
+++ b/Library/Formula/z80dasm.rb
@@ -12,7 +12,7 @@ class Z80dasm < Formula
test do
path = testpath/"a.bin"
- path.open("wb") { |f| f.write [0xcd, 0x34, 0x12].pack("c*") }
+ path.binwrite [0xcd, 0x34, 0x12].pack("c*")
output = `#{bin}/z80dasm #{path}`.strip
assert output.include?("call 01234h")