ddy_remote_resource 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e5d535b80c7ce7ac05077482e389f6f8c754c6468338225903774afb9720250c
4
- data.tar.gz: f2c666b1216a0cca9bf544145a7fce488eca49c8a986248fd5892d315a5f504b
3
+ metadata.gz: 01c488609ff4533d6ea54be08027729ce36cc12af11de2d6f35bb5e56482e418
4
+ data.tar.gz: de39889dd48982a7c401c6c6f5172e15e76a0b35eb37e31801b7be3a3266df31
5
5
  SHA512:
6
- metadata.gz: a0b2d03cc8948f7625fda15443fdd052eabfb2c9800c243aac99200d582461df08d2a9fae37edd5a5afc249635037befdca55f315345fb4286734e62b00b9929
7
- data.tar.gz: 36e740906563d27c86e0f501b937ff171fca77b1fdf41203cfd47a9ee816b9ffa3bbde5482695e2b4706c415addb3043ebca2172b0690305997a0adbeac5148a
6
+ metadata.gz: 6658fe02ece1e49db0fa8cf6cf8d2d35ec2b338e30b1ac363c8a638ae55e036c83979ac850a19009028b2bdbbb03497c39264b3bd210050e7ce4603c98418555
7
+ data.tar.gz: b7515a8da8131f9981e5c3387cc7626e3ffe50939171087a469397f31bc094159e37db44e81a3c2bffa29fbc9093b3e97cd46b081d5467ed0b9bb05cfa76394e
data/CHANGELOG.md ADDED
@@ -0,0 +1,21 @@
1
+ # Changelog
2
+
3
+ ## [Unreleased]
4
+
5
+ ## [1.3.2] - 2023-08-08
6
+
7
+ ### Added
8
+
9
+ - Allow using request body for GET requests by passing `force_get_params_in_body: true`.
10
+
11
+ User.all(params: {ids: ids}, force_get_params_in_body: true)
12
+
13
+ ## [1.3.1] - 2023-02-26
14
+
15
+ ### Changed
16
+
17
+ - Update request_store dependency to 1.6.
18
+
19
+ ## [1.3.0] - 2022-07-04
20
+
21
+ - Public release to Github.
@@ -68,7 +68,7 @@ module RemoteResource
68
68
  @query ||= begin
69
69
  params = connection_options[:params]
70
70
 
71
- if params.present?
71
+ if params.present? && !connection_options[:force_get_params_in_body]
72
72
  RemoteResource::Util.encode_params_to_query(params)
73
73
  else
74
74
  nil
@@ -78,8 +78,11 @@ module RemoteResource
78
78
 
79
79
  def body
80
80
  @body ||= begin
81
- if [:put, :patch, :post].include?(http_action)
81
+ case http_action
82
+ when :put, :patch, :post
82
83
  attributes.to_json
84
+ when :get
85
+ connection_options[:params].to_json if connection_options[:force_get_params_in_body]
83
86
  else
84
87
  nil
85
88
  end
@@ -1,3 +1,3 @@
1
1
  module RemoteResource
2
- VERSION = '1.3.1'.freeze
2
+ VERSION = '1.3.2'.freeze
3
3
  end
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ['lib']
20
20
 
21
21
  spec.add_development_dependency 'bundler'
22
- spec.add_development_dependency 'rake', '~> 10.4'
22
+ spec.add_development_dependency 'rake', '~> 12.3'
23
23
  spec.add_development_dependency 'rspec', '~> 3.1'
24
24
  spec.add_development_dependency 'pry', '~> 0.10'
25
25
  spec.add_development_dependency 'webmock', '~> 3'
@@ -16,56 +16,113 @@ RSpec.describe RemoteResource::Querying::PersistenceMethods do
16
16
  end
17
17
 
18
18
  describe '.create' do
19
- let(:response_body) do
20
- {
21
- data: {
22
- id: 12,
23
- title: 'Lorem Ipsum',
24
- body: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
25
- featured: true,
26
- created_at: Time.new(2015, 10, 4, 9, 30, 0),
19
+ context 'when resource is persisted' do
20
+ let(:response_body) do
21
+ {
22
+ data: {
23
+ id: 12,
24
+ title: 'Lorem Ipsum',
25
+ body: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
26
+ featured: true,
27
+ created_at: Time.new(2015, 10, 4, 9, 30, 0),
28
+ }
27
29
  }
28
- }
29
- end
30
+ end
30
31
 
31
- let!(:expected_request) do
32
- mock_request = stub_request(:post, 'https://www.example.com/posts.json')
33
- mock_request.to_return(status: 201, body: JSON.generate(response_body))
34
- mock_request
35
- end
32
+ let!(:expected_request) do
33
+ mock_request = stub_request(:post, 'https://www.example.com/posts.json')
34
+ mock_request.to_return(status: 201, body: JSON.generate(response_body))
35
+ mock_request
36
+ end
36
37
 
37
- it 'performs the HTTP request' do
38
- Post.create(title: 'Lorem Ipsum', body: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', featured: true)
39
- expect(expected_request).to have_been_requested
40
- end
38
+ it 'performs the HTTP request' do
39
+ Post.create(title: 'Lorem Ipsum', body: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', featured: true)
40
+ expect(expected_request).to have_been_requested
41
+ end
41
42
 
42
- it 'builds the correct resource' do
43
- post = Post.create(title: 'Lorem Ipsum', body: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', featured: true)
43
+ it 'builds the correct resource' do
44
+ post = Post.create(title: 'Lorem Ipsum', body: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', featured: true)
44
45
 
45
- aggregate_failures do
46
- expect(post.persisted?).to eql true
47
- expect(post.id).to eql 12
48
- expect(post.title).to eql 'Lorem Ipsum'
49
- expect(post.body).to eql 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
50
- expect(post.featured).to eql true
51
- expect(post.created_at).to eql Time.new(2015, 10, 4, 9, 30, 0)
46
+ aggregate_failures do
47
+ expect(post.persisted?).to eql true
48
+ expect(post.id).to eql 12
49
+ expect(post.title).to eql 'Lorem Ipsum'
50
+ expect(post.body).to eql 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
51
+ expect(post.featured).to eql true
52
+ expect(post.created_at).to eql Time.new(2015, 10, 4, 9, 30, 0)
53
+ end
52
54
  end
53
- end
54
55
 
55
- it 'does NOT change the given attributes' do
56
- attributes = { title: 'Lorem Ipsum', body: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', featured: true }
56
+ it 'does NOT change the given attributes' do
57
+ attributes = { title: 'Lorem Ipsum', body: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', featured: true }
57
58
 
58
- expect { Post.create(attributes) }.not_to change { attributes }.from(attributes.dup)
59
- end
59
+ expect { Post.create(attributes) }.not_to change { attributes }.from(attributes.dup)
60
+ end
60
61
 
61
- it 'does NOT change the given connection_options' do
62
- attributes = { title: 'Lorem Ipsum', body: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', featured: true }
63
- connection_options = { headers: { 'Foo' => 'Bar' } }
62
+ it 'does NOT change the given connection_options' do
63
+ attributes = { title: 'Lorem Ipsum', body: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', featured: true }
64
+ connection_options = { headers: { 'Foo' => 'Bar' } }
64
65
 
65
- expect { Post.create(attributes, connection_options) }.not_to change { connection_options }.from(connection_options.dup)
66
+ expect { Post.create(attributes, connection_options) }.not_to change { connection_options }.from(connection_options.dup)
67
+ end
66
68
  end
67
69
 
68
- xcontext 'return value #success? and NOT #success?' do
70
+ context 'when resource is NOT persisted' do
71
+ let(:response_body) do
72
+ {
73
+ errors: {
74
+ title: ['Please use a title which is more than 5 characters'],
75
+ body: ['Please fill in a body'],
76
+ virtual_attribute: ['You already posted today', 'Please refrain from using curse words']
77
+ }
78
+ }
79
+ end
80
+
81
+ let(:resource) { Post.new(title: 'Lorem Ipsum', body: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', featured: true) }
82
+
83
+ let!(:expected_request) do
84
+ mock_request = stub_request(:post, 'https://www.example.com/posts.json')
85
+ mock_request.to_return(status: 422, body: JSON.generate(response_body))
86
+ mock_request
87
+ end
88
+
89
+ it 'returns the resource' do
90
+ expect(Post.create(title: 'Aliquam lobortis', featured: true)).to be_a(Post)
91
+ end
92
+
93
+ it 'performs the HTTP request' do
94
+ Post.create(title: 'Lorem Ipsum', body: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', featured: true)
95
+ expect(expected_request).to have_been_requested
96
+ end
97
+
98
+ it 'builds the correct resource' do
99
+ post = Post.create(title: 'Lorem Ipsum', body: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', featured: true)
100
+
101
+ aggregate_failures do
102
+ expect(post.persisted?).to eql false
103
+ expect(post.id).to eql nil
104
+ expect(post.title).to eql 'Lorem Ipsum'
105
+ expect(post.body).to eql 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
106
+ expect(post.featured).to eql true
107
+ expect(post.created_at).to eql nil
108
+ expect(post.errors.messages[:title]).to eql ['Please use a title which is more than 5 characters']
109
+ expect(post.errors.messages[:body]).to eql ['Please fill in a body']
110
+ expect(post.errors.messages[:base]).to eql ['You already posted today', 'Please refrain from using curse words']
111
+ end
112
+ end
113
+
114
+ it 'does NOT change the given attributes' do
115
+ attributes = { title: 'Aliquam lobortis', featured: true }
116
+
117
+ expect { Post.create(attributes) }.not_to change { attributes }.from(attributes.dup)
118
+ end
119
+
120
+ it 'does NOT change the given connection_options' do
121
+ attributes = { title: 'Aliquam lobortis', featured: true }
122
+ connection_options = { headers: { 'Foo' => 'Bar' } }
123
+
124
+ expect { Post.create(attributes, connection_options) }.not_to change { connection_options }.from(connection_options.dup)
125
+ end
69
126
  end
70
127
  end
71
128
 
@@ -99,25 +156,22 @@ RSpec.describe RemoteResource::Querying::PersistenceMethods do
99
156
 
100
157
  expect { Post.destroy(12, connection_options) }.not_to change { connection_options }.from(connection_options.dup)
101
158
  end
102
-
103
- xcontext 'return value #success? and NOT #success?' do
104
- end
105
159
  end
106
160
 
107
161
  describe '#update_attributes' do
108
- let(:response_body) do
109
- {
110
- data: {
111
- id: 12,
112
- title: 'Aliquam lobortis',
113
- body: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
114
- featured: true,
115
- created_at: Time.new(2015, 10, 4, 9, 30, 0),
162
+ context 'when resource is persisted' do
163
+ let(:response_body) do
164
+ {
165
+ data: {
166
+ id: 12,
167
+ title: 'Aliquam lobortis',
168
+ body: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
169
+ featured: true,
170
+ created_at: Time.new(2015, 10, 4, 9, 30, 0),
171
+ }
116
172
  }
117
- }
118
- end
173
+ end
119
174
 
120
- context 'when resource is persisted' do
121
175
  let(:resource) { Post.new(id: 12, title: 'Lorem Ipsum', body: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', featured: true, created_at: Time.new(2015, 10, 4, 9, 30, 0)) }
122
176
 
123
177
  let!(:expected_request) do
@@ -126,6 +180,10 @@ RSpec.describe RemoteResource::Querying::PersistenceMethods do
126
180
  mock_request
127
181
  end
128
182
 
183
+ it 'returns the resource' do
184
+ expect(resource.update_attributes(title: 'Aliquam lobortis', featured: true)).to eql resource
185
+ end
186
+
129
187
  it 'performs the HTTP request' do
130
188
  resource.update_attributes(title: 'Aliquam lobortis', featured: true)
131
189
  expect(expected_request).to have_been_requested
@@ -158,20 +216,31 @@ RSpec.describe RemoteResource::Querying::PersistenceMethods do
158
216
 
159
217
  expect { resource.update_attributes(attributes, connection_options) }.not_to change { connection_options }.from(connection_options.dup)
160
218
  end
161
-
162
- xcontext 'return value #success? and NOT #success?' do
163
- end
164
219
  end
165
220
 
166
221
  context 'when resource is NOT persisted' do
222
+ let(:response_body) do
223
+ {
224
+ errors: {
225
+ title: ['Please use a title which is more than 5 characters'],
226
+ body: ['Please fill in a body'],
227
+ virtual_attribute: ['You already posted today', 'Please refrain from using curse words']
228
+ }
229
+ }
230
+ end
231
+
167
232
  let(:resource) { Post.new(title: 'Lorem Ipsum', body: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', featured: true) }
168
233
 
169
234
  let!(:expected_request) do
170
235
  mock_request = stub_request(:post, 'https://www.example.com/posts.json')
171
- mock_request.to_return(status: 201, body: JSON.generate(response_body))
236
+ mock_request.to_return(status: 422, body: JSON.generate(response_body))
172
237
  mock_request
173
238
  end
174
239
 
240
+ it 'returns false' do
241
+ expect(resource.update_attributes(title: 'Aliquam lobortis', featured: true)).to eql false
242
+ end
243
+
175
244
  it 'performs the HTTP request' do
176
245
  resource.update_attributes(title: 'Aliquam lobortis', featured: true)
177
246
  expect(expected_request).to have_been_requested
@@ -183,12 +252,15 @@ RSpec.describe RemoteResource::Querying::PersistenceMethods do
183
252
  post = resource
184
253
 
185
254
  aggregate_failures do
186
- expect(post.persisted?).to eql true
187
- expect(post.id).to eql 12
255
+ expect(post.persisted?).to eql false
256
+ expect(post.id).to eql nil
188
257
  expect(post.title).to eql 'Aliquam lobortis'
189
258
  expect(post.body).to eql 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
190
259
  expect(post.featured).to eql true
191
- expect(post.created_at).to eql Time.new(2015, 10, 4, 9, 30, 0)
260
+ expect(post.created_at).to eql nil
261
+ expect(post.errors.messages[:title]).to eql ['Please use a title which is more than 5 characters']
262
+ expect(post.errors.messages[:body]).to eql ['Please fill in a body']
263
+ expect(post.errors.messages[:base]).to eql ['You already posted today', 'Please refrain from using curse words']
192
264
  end
193
265
  end
194
266
 
@@ -204,26 +276,23 @@ RSpec.describe RemoteResource::Querying::PersistenceMethods do
204
276
 
205
277
  expect { resource.update_attributes(attributes, connection_options) }.not_to change { connection_options }.from(connection_options.dup)
206
278
  end
207
-
208
- xcontext 'return value #success? and NOT #success?' do
209
- end
210
279
  end
211
280
  end
212
281
 
213
282
  describe '#save' do
214
- let(:response_body) do
215
- {
216
- data: {
217
- id: 12,
218
- title: 'Lorem Ipsum',
219
- body: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
220
- featured: false,
221
- created_at: Time.new(2015, 10, 4, 9, 30, 0),
283
+ context 'when resource is persisted' do
284
+ let(:response_body) do
285
+ {
286
+ data: {
287
+ id: 12,
288
+ title: 'Lorem Ipsum',
289
+ body: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
290
+ featured: false,
291
+ created_at: Time.new(2015, 10, 4, 9, 30, 0),
292
+ }
222
293
  }
223
- }
224
- end
294
+ end
225
295
 
226
- context 'when resource is persisted' do
227
296
  let(:resource) { Post.new(id: 12, title: 'Lorem Ipsum', body: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', featured: false, created_at: Time.new(2015, 10, 4, 9, 30, 0)) }
228
297
 
229
298
  let!(:expected_request) do
@@ -232,6 +301,10 @@ RSpec.describe RemoteResource::Querying::PersistenceMethods do
232
301
  mock_request
233
302
  end
234
303
 
304
+ it 'returns the resource' do
305
+ expect(resource.save).to eql resource
306
+ end
307
+
235
308
  it 'performs the HTTP request' do
236
309
  resource.save
237
310
  expect(expected_request).to have_been_requested
@@ -257,37 +330,51 @@ RSpec.describe RemoteResource::Querying::PersistenceMethods do
257
330
 
258
331
  expect { resource.save(connection_options) }.not_to change { connection_options }.from(connection_options.dup)
259
332
  end
260
-
261
- xcontext 'return value #success? and NOT #success?' do
262
- end
263
333
  end
264
334
 
265
335
  context 'when resource is NOT persisted' do
336
+ let(:response_body) do
337
+ {
338
+ errors: {
339
+ title: ['Please use a title which is more than 5 characters'],
340
+ body: ['Please fill in a body'],
341
+ virtual_attribute: ['You already posted today', 'Please refrain from using curse words']
342
+ }
343
+ }
344
+ end
345
+
266
346
  let(:resource) { Post.new(title: 'Lorem Ipsum', body: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', featured: false) }
267
347
 
268
348
  let!(:expected_request) do
269
349
  mock_request = stub_request(:post, 'https://www.example.com/posts.json')
270
- mock_request.to_return(status: 201, body: JSON.generate(response_body))
350
+ mock_request.to_return(status: 422, body: JSON.generate(response_body))
271
351
  mock_request
272
352
  end
273
353
 
354
+ it 'returns false' do
355
+ expect(resource.save).to eql false
356
+ end
357
+
274
358
  it 'performs the HTTP request' do
275
359
  resource.save
276
360
  expect(expected_request).to have_been_requested
277
361
  end
278
362
 
279
- it 'builds the correct resource' do
363
+ it 'builds the correct resource with validation errors' do
280
364
  resource.save
281
365
 
282
366
  post = resource
283
367
 
284
368
  aggregate_failures do
285
- expect(post.persisted?).to eql true
286
- expect(post.id).to eql 12
369
+ expect(post.persisted?).to eql false
370
+ expect(post.id).to eql nil
287
371
  expect(post.title).to eql 'Lorem Ipsum'
288
372
  expect(post.body).to eql 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
289
373
  expect(post.featured).to eql false
290
- expect(post.created_at).to eql Time.new(2015, 10, 4, 9, 30, 0)
374
+ expect(post.created_at).to eql nil
375
+ expect(post.errors.messages[:title]).to eql ['Please use a title which is more than 5 characters']
376
+ expect(post.errors.messages[:body]).to eql ['Please fill in a body']
377
+ expect(post.errors.messages[:base]).to eql ['You already posted today', 'Please refrain from using curse words']
291
378
  end
292
379
  end
293
380
 
@@ -296,9 +383,6 @@ RSpec.describe RemoteResource::Querying::PersistenceMethods do
296
383
 
297
384
  expect { resource.save(connection_options) }.not_to change { connection_options }.from(connection_options.dup)
298
385
  end
299
-
300
- xcontext 'return value #success? and NOT #success?' do
301
- end
302
386
  end
303
387
  end
304
388
 
@@ -337,9 +421,6 @@ RSpec.describe RemoteResource::Querying::PersistenceMethods do
337
421
  expect { resource.destroy(connection_options) }.not_to change { connection_options }.from(connection_options.dup)
338
422
  end
339
423
 
340
- xcontext 'return value #success? and NOT #success?' do
341
- end
342
-
343
424
  context 'when the id is NOT present' do
344
425
  let(:resource) { Post.new }
345
426
 
@@ -398,6 +398,16 @@ RSpec.describe RemoteResource::Request do
398
398
  it 'returns the URL-encoded params' do
399
399
  expect(CGI.unescape(request.query)).to eql expected_query
400
400
  end
401
+
402
+ context "when connection_options[:force_get_params_in_body] is present" do
403
+ let(:connection_options) do
404
+ { root_element: :data, force_get_params_in_body: true, params: { pseudonym: 'pseudonym', labels: [1, '2', 'three'], pagination: { page: 5, limit: 15, ordered: true } } }
405
+ end
406
+
407
+ it 'returns nil' do
408
+ expect(request.query).to be_nil
409
+ end
410
+ end
401
411
  end
402
412
 
403
413
  context 'when connection_options[:params] are NOT present' do
@@ -428,7 +438,22 @@ RSpec.describe RemoteResource::Request do
428
438
  end
429
439
  end
430
440
 
431
- context 'when the http_action is NOT :put, :patch or :post' do
441
+ context 'when the http_action is :get and connection_options[:force_get_params_in_body] is present' do
442
+ let(:http_action) { :get }
443
+ let(:connection_options) do
444
+ { force_get_params_in_body: true, params: { pseudonym: 'pseudonym', labels: [1, '2', 'three'] } }
445
+ end
446
+
447
+ let(:expected_body) do
448
+ '{"pseudonym":"pseudonym","labels":[1,"2","three"]}'
449
+ end
450
+
451
+ it 'returns the JSON-encoded connection_options[:params]' do
452
+ expect(request.body).to eql expected_body
453
+ end
454
+ end
455
+
456
+ context "when the http_action is :get and connection_options[:params][:force_get_params_in_body] is not present" do
432
457
  let(:http_action) { :get }
433
458
 
434
459
  it 'returns nil' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ddy_remote_resource
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Digidentity
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2024-03-08 00:00:00.000000000 Z
13
+ date: 2024-08-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -32,14 +32,14 @@ dependencies:
32
32
  requirements:
33
33
  - - "~>"
34
34
  - !ruby/object:Gem::Version
35
- version: '10.4'
35
+ version: '12.3'
36
36
  type: :development
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - "~>"
41
41
  - !ruby/object:Gem::Version
42
- version: '10.4'
42
+ version: '12.3'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: rspec
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -253,6 +253,7 @@ files:
253
253
  - ".ruby-gemset"
254
254
  - ".ruby-version"
255
255
  - ".travis.yml"
256
+ - CHANGELOG.md
256
257
  - Gemfile
257
258
  - Guardfile
258
259
  - LICENSE.txt
@@ -302,7 +303,6 @@ files:
302
303
  - spec/lib/remote_resource/url_naming_determination_spec.rb
303
304
  - spec/lib/remote_resource/url_naming_spec.rb
304
305
  - spec/lib/remote_resource/util_spec.rb
305
- - spec/lib/remote_resource/version_spec.rb
306
306
  - spec/spec_helper.rb
307
307
  homepage: https://github.com/digidentity/ddy_remote_resource
308
308
  licenses:
@@ -354,5 +354,4 @@ test_files:
354
354
  - spec/lib/remote_resource/url_naming_determination_spec.rb
355
355
  - spec/lib/remote_resource/url_naming_spec.rb
356
356
  - spec/lib/remote_resource/util_spec.rb
357
- - spec/lib/remote_resource/version_spec.rb
358
357
  - spec/spec_helper.rb
@@ -1,5 +0,0 @@
1
- require 'spec_helper'
2
-
3
- RSpec.describe RemoteResource::VERSION do
4
- it { is_expected.to eql '1.3.0' }
5
- end