Merge commit 'c37bc5a8a94758e19b2d50db5e7816a96cec5cf4' into glitch-soc/merge-upstream

This commit is contained in:
Claire committed 2026-03-17 18:01:07 +01:00
commit 04bf07a9cf
65 files changed
+528 -240

No files matched your search

@@ -52,6 +52,19 @@ RSpec.describe 'Donation campaigns' do
end
end
context 'when the donation campaign returns bad response' do
before do
stub_request(:get, "#{api_url}?platform=web&seed=#{seed}&locale=en").to_return(body: 'Cats & Dogs', status: 200)
end
it 'handles the error and returns http empty' do
get '/api/v1/donation_campaigns', headers: headers
expect(response)
.to have_http_status(204)
end
end
context 'when the donation campaign API returns a campaign' do
let(:campaign_json) do
{