Skip to content

Commit

Permalink
Use env vars for urls
Browse files Browse the repository at this point in the history
  • Loading branch information
kookster committed Oct 29, 2024
1 parent 92f8b64 commit a2e0ff8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/models/prx/augury_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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: {})
}

Expand Down

0 comments on commit a2e0ff8

Please sign in to comment.