diff --git a/test/test_fake_web.rb b/test/test_fake_web.rb index f344612..682c43d 100644 --- a/test/test_fake_web.rb +++ b/test/test_fake_web.rb @@ -35,7 +35,9 @@ def test_response_for_with_wrong_number_of_arguments end def test_register_uri_without_domain_name - assert_raises URI::InvalidURIError do + # Ruby 2.1 and lower raises URI::InvalidURIError + # Ruby 2.2 and higher raises TypeError + assert_raises URI::InvalidURIError, TypeError do FakeWeb.register_uri(:get, 'test_example2.txt', fixture_path("test_example.txt")) end end