summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLee Jarvis <ljjarvis@gmail.com>2012-10-22 11:37:52 +0100
committerLee Jarvis <ljjarvis@gmail.com>2012-10-22 11:37:52 +0100
commit62a3a6f74f2feaa34fac3c21d8bf1c1a70730f36 (patch)
tree8ac940fb746dad1dbaf102dc67a4b01b6d829f35
parent0d85842fe8accd56c1ae6890292aec651f6c46ee (diff)
downloadslop-62a3a6f74f2feaa34fac3c21d8bf1c1a70730f36.tar.gz
simplify tests
-rw-r--r--test/slop_test.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/test/slop_test.rb b/test/slop_test.rb
index 36054be..7a65af2 100644
--- a/test/slop_test.rb
+++ b/test/slop_test.rb
@@ -426,12 +426,7 @@ class SlopTest < TestCase
assert_same obj.respond_to?(:__id__, false), slop.respond_to?(:__id__, false)
assert_same obj.respond_to?(:__id__, true), slop.respond_to?(:__id__, true)
- exeption = begin
- obj.respond_to? :__id__, false, :INVALID_ARGUMENT
- rescue Exception
- $!
- end
- assert_raises exeption.class do
+ assert_raises ArgumentError do
slop.respond_to? :__id__, false, :INVALID_ARGUMENT
end
end