From a2e0ff8352dfe3225779e70a222653290364b591 Mon Sep 17 00:00:00 2001 From: Andrew Kuklewicz Date: Tue, 29 Oct 2024 18:39:23 -0400 Subject: [PATCH] Use env vars for urls --- test/models/prx/augury_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/models/prx/augury_test.rb b/test/models/prx/augury_test.rb index 17738eeb2..080ff5304 100644 --- a/test/models/prx/augury_test.rb +++ b/test/models/prx/augury_test.rb @@ -4,12 +4,12 @@ let(:augury) { Prx::Augury.new } before { - stub_request(:post, "https://id.prx.org/token") + stub_request(:post, "https://#{ENV["ID_HOST"]}/token") .to_return(status: 200, body: '{"access_token":"thisisnotatoken","token_type":"bearer"}', headers: {"Content-Type" => "application/json; charset=utf-8"}) - stub_request(:get, "https://inventory.dovetail.prx.org/api/v1/podcasts/1234/placements") + stub_request(:get, "https://#{ENV["AUGURY_HOST"]}/api/v1/podcasts/1234/placements") .to_return(status: 200, body: json_file(:placements), headers: {}) }