diff options
| -rw-r--r-- | Library/Formula/patchutils.rb | 3 | ||||
| -rw-r--r-- | Library/Homebrew/test/fixtures/test.diff | 10 |
2 files changed, 11 insertions, 2 deletions
diff --git a/Library/Formula/patchutils.rb b/Library/Formula/patchutils.rb index 3d1ed1d02..8916fde1a 100644 --- a/Library/Formula/patchutils.rb +++ b/Library/Formula/patchutils.rb @@ -23,7 +23,6 @@ class Patchutils < Formula end test do - assert_match /a\/libexec\/NOOP/, - shell_output("#{bin}/lsdiff #{HOMEBREW_LIBRARY.join("Homebrew", "test", "patches", "noop-a.diff")}") + assert_match /a\/libexec\/NOOP/, shell_output("#{bin}/lsdiff #{test_fixtures("test.diff")}") end end diff --git a/Library/Homebrew/test/fixtures/test.diff b/Library/Homebrew/test/fixtures/test.diff new file mode 100644 index 000000000..7b57f8fc9 --- /dev/null +++ b/Library/Homebrew/test/fixtures/test.diff @@ -0,0 +1,10 @@ +diff --git a/libexec/NOOP b/libexec/NOOP +index bfdda4c..e08d8f4 100755 +--- a/libexec/NOOP ++++ b/libexec/NOOP +@@ -1,2 +1,2 @@ + #!/bin/bash +-echo NOOP +\ No newline at end of file ++echo ABCD +\ No newline at end of file |
