Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BLAC-675: show item availability status #454

Merged
merged 7 commits into from
Jun 23, 2024

Conversation

CEdwardsBlasikiewicz
Copy link
Contributor

No description provided.

before do
cat_response = IO.read("spec/files/catalogue_services/08aed703-3648-54d0-80ef-fddb3c635731.json")
WebMock.stub_request(:get, /catservices.test\/catalogue-services\/folio\/instance\/08aed703-3648-54d0-80ef-fddb3c635731/)
.to_return(status: 200, body: cat_response, headers: {"Content-Type" => "application/json"})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CEdwardsBlasikiewicz the reason why you weren't getting a proper response back was because you weren't specifying a Content-Type header. Faraday will only parse responses with "application/json" headers into JSON automatically.

Copy link
Contributor

@yetti yetti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CEdwardsBlasikiewicz Sorry, I reviewed this late. Didn't see a notification from GitHub.

Copy link

Simplecov Report

Covered Threshold
97.81% 80%

@CEdwardsBlasikiewicz CEdwardsBlasikiewicz merged commit fd4868e into main Jun 23, 2024
2 checks passed
@CEdwardsBlasikiewicz CEdwardsBlasikiewicz deleted the blac-675-show-item-availability-status branch June 23, 2024 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants