aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_software_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/test/test_software_spec.rb')
-rw-r--r--Library/Homebrew/test/test_software_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_software_spec.rb b/Library/Homebrew/test/test_software_spec.rb
index c35294320..7c9fb8720 100644
--- a/Library/Homebrew/test/test_software_spec.rb
+++ b/Library/Homebrew/test/test_software_spec.rb
@@ -80,6 +80,12 @@ class SoftwareSpecTests < Test::Unit::TestCase
@spec.depends_on('foo' => :optional)
assert_equal 'blah', @spec.build.first.description
end
+
+ def test_patch
+ @spec.patch :p1, :DATA
+ assert_equal 1, @spec.patches.length
+ assert_equal :p1, @spec.patches.first.strip
+ end
end
class HeadSoftwareSpecTests < Test::Unit::TestCase