diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/pngpaste.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Library/Formula/pngpaste.rb b/Library/Formula/pngpaste.rb index ab9b55af7..5ac01b6d3 100644 --- a/Library/Formula/pngpaste.rb +++ b/Library/Formula/pngpaste.rb @@ -1,5 +1,3 @@ -require "formula" - class Pngpaste < Formula homepage "https://github.com/jcsalterego/pngpaste" url "https://github.com/jcsalterego/pngpaste/archive/0.2.1.tar.gz" @@ -9,4 +7,11 @@ class Pngpaste < Formula system "make", "all" bin.install "pngpaste" end + + test do + png = test_fixtures("test.png") + system "osascript", "-e", "set the clipboard to POSIX file (\"#{png}\")" + system bin/"pngpaste", "test.png" + assert File.exist? "test.png" + end end |
