diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/quilt.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Formula/quilt.rb b/Library/Formula/quilt.rb index 5fa6fdf68..f90d888a3 100644 --- a/Library/Formula/quilt.rb +++ b/Library/Formula/quilt.rb @@ -19,4 +19,16 @@ class Quilt < Formula system "make" system "make", "install" end + + test do + mkdir "patches" + (testpath/"test.txt").write "Hello, World!" + system "#{bin}/quilt", "new", "test.patch" + system "#{bin}/quilt", "add", "test.txt" + rm "test.txt" + (testpath/"test.txt").write "Hi!" + system "#{bin}/quilt", "refresh" + assert_match /-Hello, World!/, File.read("patches/test.patch") + assert_match /\+Hi!/, File.read("patches/test.patch") + end end |
