From 8124695aaa4fbc6b0c68d1db59c9233a98bbc3d0 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 20 Apr 2015 20:24:43 -0400 Subject: Our internal directory structure is private --- Library/Formula/patchutils.rb | 3 +-- Library/Homebrew/test/fixtures/test.diff | 10 ++++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 Library/Homebrew/test/fixtures/test.diff (limited to 'Library') 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 -- cgit v1.2.3