Skip to content

Commit

Permalink
Fix blank api key in specs
Browse files Browse the repository at this point in the history
  • Loading branch information
RobNicholsGDS committed Feb 21, 2024
1 parent 60964b3 commit 089f9ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/services/air_table_api_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

before do
stub_request(:get, url)
.with(headers: { "Authorization" => "Bearer #{described_class::API_KEY}" })
.with(headers: { "Authorization" => ["Bearer", described_class::API_KEY].select(&:present?).join(" ") })
.to_return(body: payload.to_json)
end

Expand Down

0 comments on commit 089f9ae

Please sign in to comment.