-
Notifications
You must be signed in to change notification settings - Fork 0
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
BLAC-675: show item availability status #454
Conversation
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"}) |
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
Simplecov Report
|
No description provided.