Skip to content

Commit

Permalink
add test for empty apikey
Browse files Browse the repository at this point in the history
  • Loading branch information
viacheslav-rostovtsev committed Feb 6, 2025
1 parent e82bb0f commit a269e7b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/api_key_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@
Google::Auth::APIKeyCredentials.new
end.must_raise ArgumentError
end

it "raises if API key is empty" do
expect do
Google::Auth::APIKeyCredentials.new(api_key: "")
end.must_raise ArgumentError
end
end

describe "#from_env" do
Expand Down

0 comments on commit a269e7b

Please sign in to comment.