aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorJack Nagel2014-09-18 14:16:07 -0500
committerJack Nagel2014-09-18 14:16:07 -0500
commit3bbc9998a52b86b206465c887e75ee419418c26d (patch)
tree622674f6d85c874793483740c52397b1de30a6f7 /Library/Homebrew/test
parent67a916427880df69ae34215c9d03cda4849f1ae6 (diff)
downloadbrew-3bbc9998a52b86b206465c887e75ee419418c26d.tar.bz2
Rewrite debugger to remove monkeypatches and use of call/cc
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/test_raise_plus.rb45
1 files changed, 0 insertions, 45 deletions
diff --git a/Library/Homebrew/test/test_raise_plus.rb b/Library/Homebrew/test/test_raise_plus.rb
deleted file mode 100644
index 109c6e737..000000000
--- a/Library/Homebrew/test/test_raise_plus.rb
+++ /dev/null
@@ -1,45 +0,0 @@
-require 'testing_env'
-require 'debrew/raise_plus'
-
-class RaisePlusTests < Homebrew::TestCase
- include RaisePlus
-
- def test_raises_runtime_error_when_no_args
- assert_raises(RuntimeError) { raise }
- end
-
- def test_raises_runtime_error_with_string_arg
- raise "foo"
- rescue Exception => e
- assert_kind_of RuntimeError, e
- assert_equal "foo", e.to_s
- end
-
- def test_raises_given_exception_with_new_to_s
- a = Exception.new("foo")
- raise a, "bar"
- rescue Exception => e
- assert_equal "bar", e.to_s
- end
-
- def test_raises_same_instance
- a = Exception.new("foo")
- raise a
- rescue Exception => e
- assert_same e, a
- end
-
- def test_raises_exception_class
- assert_raises(StandardError) { raise StandardError }
- end
-
- def test_raises_type_error_for_bad_args
- assert_raises(TypeError) { raise 1 }
- end
-
- def test_raise_is_private
- assert_raises(NoMethodError) do
- Object.new.extend(RaisePlus).raise(RuntimeError)
- end
- end
-end