Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FHIR::Model.search method URI Encodes twice
* Addresses including search parameters such as '>2016-01-01' get encoded twice, resulting in '%253E2016-01-01' instead of '%3E2016-01-01' * Utilize the already-included Addressable gem to ensure that the URL is safe. This method was already use by the 'search' method, via 'resource_url'. Running it through twice seems to be safe. * Add a test to ensure that our search parameters get passed safely through search. * Tests add WebMock, which allows us to run tests against fake data easily. This lets us verify the URL we attempted to use with little effort.
- Loading branch information