Skip to content

Commit

Permalink
Stubbed env needed for build (#137)
Browse files Browse the repository at this point in the history
* Fixed lint errors

* Revert "Fixed lint errors"

This reverts commit e7d3c67.

* Added some more env variable value
  • Loading branch information
ashwinisukale authored Nov 21, 2023
1 parent 276b7ff commit 40e2ff4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/models/orcid_affiliation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@
allow(ENV).to receive(:[]).with("ORCID_AFFILIATION_SOURCE_TOKEN").and_return("ORCID_AFFILIATION_SOURCE_TOKEN")
allow(ENV).to receive(:[]).with("LAGOTTINO_URL").and_return("https://fake.lagattino.com")
allow(ENV).to receive(:[]).with("API_URL").and_return("https://fake.api.com")
allow(ENV).to receive(:[]).with("USER_AGENT").and_return("USER_AGENT")
allow(ENV).to receive(:[]).with("CROSSREF_QUERY_URL").and_return("https://fake.crossrefurl.com")
allow(ENV).to receive(:[]).with("VOLPINO_URL").and_return("https://fake.volpinoapi.com")
allow(ENV).to receive(:[]).with("SLACK_WEBHOOK_URL").and_return("")
allow(ENV).to receive(:[]).with("TRUSTED_IP").and_return("123444")
allow(Rails.logger).to receive(:info)
end

Expand Down

0 comments on commit 40e2ff4

Please sign in to comment.