aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorJack Nagel2013-02-25 14:01:02 -0600
committerJack Nagel2013-02-25 14:01:02 -0600
commit0baac3bf5faa391d0748dccf6b424bfac05c6801 (patch)
tree5ab513cc618c78851c852483c8f06a3c7c654bda /Library/Homebrew/test
parentfc9a869edb7da16b44cc48a158f1740b694e7b0a (diff)
downloadhomebrew-0baac3bf5faa391d0748dccf6b424bfac05c6801.tar.bz2
BuildEnvironment: use separate sets for procs and symbols
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/test_build_environment.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Homebrew/test/test_build_environment.rb b/Library/Homebrew/test/test_build_environment.rb
index 6710662b5..31d3cb1cb 100644
--- a/Library/Homebrew/test/test_build_environment.rb
+++ b/Library/Homebrew/test/test_build_environment.rb
@@ -21,8 +21,10 @@ class BuildEnvironmentTests < Test::Unit::TestCase
end
def test_modify_build_environment
- @env << Proc.new { 1 }
- assert_equal 1, @env.modify_build_environment
+ @env << Proc.new { raise StandardError }
+ assert_raises(StandardError) do
+ @env.modify_build_environment
+ end
end
def test_marshal