aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/disktype.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Formula/disktype.rb b/Library/Formula/disktype.rb
index 99e438032..dd5d1082b 100644
--- a/Library/Formula/disktype.rb
+++ b/Library/Formula/disktype.rb
@@ -12,4 +12,13 @@ class Disktype < Formula
bin.install "disktype"
man1.install "disktype.1"
end
+
+ test do
+ path = testpath/"foo"
+ path.write "1234"
+
+ output = `#{bin}/disktype #{path}`
+ assert output.include?("Regular file, size 4 bytes")
+ assert_equal 0, $?.exitstatus
+ end
end