Skip to content
This repository was archived by the owner on Sep 1, 2025. It is now read-only.

Conversation

@jaimeiniesta
Copy link
Contributor

Adds support for PATCH requests, needed to update jobs:

https://stuart.api-docs.io/v2/jobs/update-a-job

Copy link
Contributor

@seanhandley seanhandley left a comment

Choose a reason for hiding this comment

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

LGTM.

Not sure about the hardcoding of values in the specs, though. In RSpec I'd use a let for these, but perhaps here they could be module attributes? Or maybe even something else? WDYT?

#####################

defp response(:get, "https://sandbox-api.stuart.com/timeout") do
defp response(_, "https://sandbox-api.stuart.com/timeout") do
Copy link
Contributor

Choose a reason for hiding this comment

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

The sandbox URL seems like a good candidate for a module attribute.

@jaimeiniesta jaimeiniesta merged commit 248497c into develop Sep 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants