restful_resource 0.8.15 → 0.8.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/restful_resource/base.rb +1 -1
- data/lib/restful_resource/version.rb +1 -1
- data/spec/restful_resource/base_spec.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6acf45b1491839d7ea62730ed572df39e25e6d6f
|
4
|
+
data.tar.gz: 2c359ee84cbb2646ff453c94bf6c689956e7c5a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ca11f20e9f6a2a20de43cf5bbccd852cd1c1cde3afa4901ee16d9f33e68ec0e8af9b8d6c8139d9e4668f1e17eb22ff82e9212b307813adf91b7ab7833d9689f
|
7
|
+
data.tar.gz: 8271057f358d3abdfb37ade2c86f19ecbf14b39fe40fa8ca802dfcbfcb13e850b2861af3e66a84e5ab13ee6e25dd985453ad14b02163ddb80d53ddf1c44abd21
|
@@ -39,9 +39,9 @@ describe RestfulResource::Base do
|
|
39
39
|
|
40
40
|
it "should encode parameters correctly in the url" do
|
41
41
|
expected_response = RestfulResource::Response.new(body: {name: 'Golf', price: 15000}.to_json)
|
42
|
-
expect_get("http://api.carwow.co.uk/groups/15/makes/Land%
|
42
|
+
expect_get("http://api.carwow.co.uk/groups/15/makes/Land+Rover%3Fx%3D0.123/models/Golf", expected_response)
|
43
43
|
|
44
|
-
object = Model.find('Golf', make_slug: 'Land Rover', group_id: 15)
|
44
|
+
object = Model.find('Golf', make_slug: 'Land Rover?x=0.123', group_id: 15)
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|