diff options
| author | Mike Naberezny | 2014-02-10 10:54:11 -0800 |
|---|---|---|
| committer | Mike McQuaid | 2014-02-10 18:58:32 +0000 |
| commit | 6d70fb0c718f4aa70ebf40874dcee4f146ea5361 (patch) | |
| tree | 2cc200946ce7c3697ce4434b2e050782aacc33c4 /Library | |
| parent | fe4e5229299c531f79f73e8d0df6ed8b9a28c659 (diff) | |
| download | homebrew-6d70fb0c718f4aa70ebf40874dcee4f146ea5361.tar.bz2 | |
disktype: add test
Closes #26579.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/disktype.rb | 9 |
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 |
