global-registry-bindings 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -285,7 +285,7 @@ RSpec.describe GlobalRegistry::Bindings::Workers::PushRelationshipWorker do
285
285
  end
286
286
 
287
287
  context 'fancy_org_assignment missing global_registry_id' do
288
- let(:assignment) do
288
+ let!(:assignment) do
289
289
  create(:assignment, person: person, organization: organization, assigned_by: person)
290
290
  end
291
291
 
@@ -295,7 +295,7 @@ RSpec.describe GlobalRegistry::Bindings::Workers::PushRelationshipWorker do
295
295
  expect do
296
296
  worker.push_relationship_to_global_registry
297
297
  end.to raise_error(GlobalRegistry::Bindings::RelatedEntityMissingGlobalRegistryId).and(
298
- change(GlobalRegistry::Bindings::Workers::PushRelationshipWorker.jobs, :size).by(2)
298
+ change(GlobalRegistry::Bindings::Workers::PushRelationshipWorker.jobs, :size).by(1)
299
299
  )
300
300
  end
301
301
  end
@@ -375,6 +375,17 @@ RSpec.describe GlobalRegistry::Bindings::Workers::PushRelationshipWorker do
375
375
  expect(person.country_of_service_gr_id).to eq '420d2fd1-7a73-41ed-9d8f-5dc79b00a688'
376
376
  end
377
377
  end
378
+
379
+ context 'missing related model' do
380
+ let(:person) do
381
+ create(:person, global_registry_id: '2f0c62f1-5738-4860-88bd-5706fb801d7b', country_of_service_id: 12_345)
382
+ end
383
+
384
+ it 'should do nothing' do
385
+ worker.push_relationship_to_global_registry
386
+ expect(person.country_of_service_gr_id).to be nil
387
+ end
388
+ end
378
389
  end
379
390
 
380
391
  describe 'country_of_residence' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: global-registry-bindings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Zoetewey
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-14 00:00:00.000000000 Z
11
+ date: 2017-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -76,7 +76,7 @@ dependencies:
76
76
  requirements:
77
77
  - - ">="
78
78
  - !ruby/object:Gem::Version
79
- version: 4.0.0
79
+ version: 5.0.0
80
80
  - - "<"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '6'
@@ -86,10 +86,24 @@ dependencies:
86
86
  requirements:
87
87
  - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: 4.0.0
89
+ version: 5.0.0
90
90
  - - "<"
91
91
  - !ruby/object:Gem::Version
92
92
  version: '6'
93
+ - !ruby/object:Gem::Dependency
94
+ name: appraisal
95
+ requirement: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ type: :development
101
+ prerelease: false
102
+ version_requirements: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ version: '0'
93
107
  - !ruby/object:Gem::Dependency
94
108
  name: combustion
95
109
  requirement: !ruby/object:Gem::Requirement
@@ -192,16 +206,16 @@ dependencies:
192
206
  name: rubocop
193
207
  requirement: !ruby/object:Gem::Requirement
194
208
  requirements:
195
- - - "~>"
209
+ - - '='
196
210
  - !ruby/object:Gem::Version
197
- version: '0.48'
211
+ version: 0.48.1
198
212
  type: :development
199
213
  prerelease: false
200
214
  version_requirements: !ruby/object:Gem::Requirement
201
215
  requirements:
202
- - - "~>"
216
+ - - '='
203
217
  - !ruby/object:Gem::Version
204
- version: '0.48'
218
+ version: 0.48.1
205
219
  - !ruby/object:Gem::Dependency
206
220
  name: database_cleaner
207
221
  requirement: !ruby/object:Gem::Requirement