aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_utils.rb
diff options
context:
space:
mode:
authorMike McQuaid2016-11-15 08:15:42 +0000
committerGitHub2016-11-15 08:15:42 +0000
commit484e3e0769d9eee760f46afb67fb2ce1bfe6e33d (patch)
tree4223979597492b8e36c7eb21c561fd6bd8a60d15 /Library/Homebrew/test/test_utils.rb
parent30fdbe089b6a7d91dd12132b46436f90dad60c88 (diff)
parentca3562645c30b86da5057cf2f8de9974c4a18413 (diff)
downloadbrew-484e3e0769d9eee760f46afb67fb2ce1bfe6e33d.tar.bz2
Merge pull request #1498 from alyssais/uninstall_developer_warning
Warn developers when uninstalling a dependency
Diffstat (limited to 'Library/Homebrew/test/test_utils.rb')
-rw-r--r--Library/Homebrew/test/test_utils.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_utils.rb b/Library/Homebrew/test/test_utils.rb
index 11332e450..7c0b6f78a 100644
--- a/Library/Homebrew/test/test_utils.rb
+++ b/Library/Homebrew/test/test_utils.rb
@@ -174,6 +174,10 @@ class UtilTests < Homebrew::TestCase
end
end
+ def test_capture_stderr
+ assert_equal "test\n", capture_stderr { $stderr.puts "test" }
+ end
+
def test_shell_profile
ENV["SHELL"] = "/bin/sh"
assert_equal "~/.bash_profile", Utils::Shell.shell_profile