syncable_models 0.0.16 → 0.0.17

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.
@@ -42,7 +42,7 @@ RSpec.describe SyncableModels::Importer::Import, type: :model do
42
42
  for_sync: [{ uuid: @imported_uuid, name: @imported_name }],
43
43
  for_destroy: ['8e9d12b3-5df0-46c3-ae19-6ac7d10879a4']
44
44
  })
45
- @import.import_model Project, id_key: :uuid
45
+ @import.import_model Project
46
46
  @import.import [Project]
47
47
  end
48
48
 
@@ -76,13 +76,12 @@ RSpec.describe SyncableModels::Importer::Import, type: :model do
76
76
  for_sync: [{ id: @imported_id, name: @imported_name }],
77
77
  for_destroy: ['73']
78
78
  })
79
- @import.import_model Team, id_key: :id
79
+ @import.import_model Team, api_id_key: :id
80
80
  @import.import [Team]
81
81
  end
82
82
 
83
83
  describe 'subject for sync' do
84
84
  it 'imports correctly' do
85
- puts Team.all.count.inspect
86
85
  expect(Team.where(external_id: @imported_id).first).not_to be_nil
87
86
  end
88
87
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: syncable_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serafim Nenarokov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-04-05 00:00:00.000000000 Z
12
+ date: 2016-05-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord