test/requests/storage/test_get_blob.rb in fog-azure-rm-0.4.5 vs test/requests/storage/test_get_blob.rb in fog-azure-rm-0.4.6

- old
+ new

@@ -36,11 +36,11 @@ end def test_get_blob_http_exception http_exception = ->(*) { raise Azure::Core::Http::HTTPError.new(@mocked_response) } @blob_client.stub :get_blob, http_exception do - assert_raises(RuntimeError) do + assert_raises(Azure::Core::Http::HTTPError) do @service.get_blob('test_container', 'test_blob') end end end @@ -110,21 +110,21 @@ end def test_get_blob_with_block_given_not_exist http_exception = ->(*) { raise Azure::Core::Http::HTTPError.new(@mocked_response) } @blob_client.stub :get_blob_properties, http_exception do - assert_raises(RuntimeError) do + assert_raises(Azure::Core::Http::HTTPError) do @service.get_blob('test_container', 'test_blob') do |*chunk| end end end end def test_get_blob_with_block_given_http_exception http_exception = ->(*) { raise Azure::Core::Http::HTTPError.new(@mocked_response) } @blob_client.stub :get_blob_properties, @raw_cloud_blob do @blob_client.stub :get_blob, http_exception do - assert_raises(RuntimeError) do + assert_raises(Azure::Core::Http::HTTPError) do @service.get_blob('test_container', 'test_blob') do |*chunk| end end end end