restful_resource 0.8.28 → 0.8.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1200df2ffe234dcae828f3463568f0958041047
|
4
|
+
data.tar.gz: ecba1c50b0cd518e23b446e804d6431161f3f17e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44f87745629a441306ece3cadd634d30ff33fbc034407f99f0e4097d6c7640484c6df533e636983276d63b133303ad56c93bfc512e7a2376c957e7a3eb42713d
|
7
|
+
data.tar.gz: a1a6c039ab088c5310c40c5ab59e3dcbfcb639b0627b659b4b9ef3f02a0f26ced3fd3f8f55e202b2c9e5c1152aba28120f36277d343aff5ef881b27b352965f0
|
@@ -61,6 +61,15 @@ describe RestfulResource::RailsValidations do
|
|
61
61
|
expect(@object.errors).to eq @error
|
62
62
|
end
|
63
63
|
|
64
|
+
it 'should return the resource id as part of the response' do
|
65
|
+
data = {name: 'Michelangelo'}
|
66
|
+
expected_response = RestfulResource::Response.new(body: @error.to_json)
|
67
|
+
expect_put_with_unprocessable_entity("http://api.carwow.co.uk/dealers/1", expected_response, data: data)
|
68
|
+
|
69
|
+
@object = Dealer.put(1, data: data)
|
70
|
+
expect(@object.valid?).to be_falsey
|
71
|
+
expect(@object.id).to be(1)
|
72
|
+
end
|
64
73
|
end
|
65
74
|
|
66
75
|
context "#post without errors" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: restful_resource
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.29
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Santoro
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-03-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -166,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
166
166
|
version: '0'
|
167
167
|
requirements: []
|
168
168
|
rubyforge_project:
|
169
|
-
rubygems_version: 2.
|
169
|
+
rubygems_version: 2.0.14
|
170
170
|
signing_key:
|
171
171
|
specification_version: 4
|
172
172
|
summary: A simple activerecord inspired rest resource base class implemented using
|