Skip to content

Commit f759251

Browse files
committed
Fix typo ForbiddenError
1 parent e6bdb68 commit f759251

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/azure_blob/http.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def inspect
1919
end
2020
end
2121
class FileNotFoundError < Error; end
22-
class ForbidenError < Error; end
22+
class ForbiddenError < Error; end
2323
class IntegrityError < Error; end
2424

2525
include REXML
@@ -94,7 +94,7 @@ def success?
9494

9595
ERROR_MAPPINGS = {
9696
Net::HTTPNotFound => FileNotFoundError,
97-
Net::HTTPForbidden => ForbidenError,
97+
Net::HTTPForbidden => ForbiddenError,
9898
}
9999

100100
ERROR_CODE_MAPPINGS = {

test/client/test_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def test_read_only_signed_uri
294294
permissions: "r",
295295
expiry: Time.at(Time.now.to_i + EXPIRATION).utc.iso8601,
296296
)
297-
assert_raises(AzureBlob::Http::ForbidenError) do
297+
assert_raises(AzureBlob::Http::ForbiddenError) do
298298
AzureBlob::Http.new(uri, { "x-ms-blob-type": "BlockBlob" }).put(content)
299299
end
300300

0 commit comments

Comments
 (0)