We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdb37dc commit bdc0618Copy full SHA for bdc0618
1 file changed
test/client/tc_exception.rb
@@ -4,7 +4,12 @@ class ExceptionTest < Test::Unit::TestCase
4
5
def test_http_error
6
client = OAI::Client.new 'http://www.example.com'
7
- assert_raises(OAI::Exception) { client.identify }
+ assert_raises(Errno::ETIMEDOUT) { client.identify }
8
+ end
9
+
10
+ def test_not_found
11
+ client = OAI::Client.new 'http://www.google.com'
12
+ assert_raises(ArgumentError) { client.identify }
13
end
14
15
def test_xml_error
0 commit comments