Added by Justin Sherrill over 5 years ago
Support rest_client 2.0
Runcible was built around being able to take a
rest client response body, pull out relevant details
and craft a new rest client response object with the boy
being the parsed json rather than the raw json. Rest Client
2.0 makes this impossible by making the Response object extend
To resolve this while attempting to not break compatibility, we
have introduced a Runcible::Response object that attempts to pass
method calls to the parsed JSON body, and if that does not make
sense, to the Rest Client Response object.
Even still, I still bumped the version to 2.0 in case there is any
change I am not seeing.
response = @extension.remove_schedules(RepositorySupport.repo_id, 'yum_importer')
assert_equal 200, response.code
Also available in: Unified diff