restforce-db 2.0.1 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/lib/restforce/db/associations/base.rb +7 -7
- data/lib/restforce/db/associations/belongs_to.rb +6 -10
- data/lib/restforce/db/associations/foreign_key.rb +1 -2
- data/lib/restforce/db/associations/has_many.rb +2 -1
- data/lib/restforce/db/associations/has_one.rb +2 -1
- data/lib/restforce/db/cleaner.rb +25 -3
- data/lib/restforce/db/configuration.rb +7 -0
- data/lib/restforce/db/record_types/active_record.rb +5 -1
- data/lib/restforce/db/version.rb +1 -1
- data/lib/restforce/db.rb +1 -0
- data/test/cassettes/Restforce_DB/accessing_Salesforce/uses_the_configured_credentials.yml +1 -1
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/returns_an_associated_record_populated_with_the_Salesforce_attributes.yml +17 -17
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/when_no_salesforce_record_is_found_for_the_association/proceeds_without_constructing_any_records.yml +11 -11
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/when_the_associated_record_has_already_been_persisted/assigns_the_existing_record.yml +17 -17
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/when_the_associated_record_has_been_cached/uses_the_cached_record.yml +17 -17
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/when_the_association_is_non-building/proceeds_without_constructing_any_records.yml +14 -14
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/with_an_unrelated_association_mapping/proceeds_without_raising_an_error.yml +17 -17
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_lookups/returns_a_hash_of_the_associated_records_lookup_IDs.yml +11 -11
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_lookups/when_there_is_currently_no_associated_record/and_the_underlying_association_is_one-to-many/still_returns_a_nil_lookup_value_in_the_hash.yml +119 -0
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_lookups/when_there_is_currently_no_associated_record/returns_a_nil_lookup_value_in_the_hash.yml +6 -6
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_synced_for_/when_a_matching_associated_record_has_been_synchronized/returns_true.yml +17 -17
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_synced_for_/when_no_matching_associated_record_has_been_synchronized/returns_false.yml +17 -17
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/builds_a_number_of_associated_records_from_the_data_in_Salesforce.yml +29 -29
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/when_no_salesforce_record_is_found_for_the_association/proceeds_without_constructing_any_records.yml +11 -11
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/when_the_associated_records_have_alrady_been_persisted/constructs_the_association_from_the_existing_records.yml +29 -29
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/when_the_associated_records_have_been_cached/uses_the_cached_records.yml +29 -29
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/when_the_association_is_non-building/proceeds_without_constructing_any_records.yml +9 -9
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_synced_for_/when_a_matching_associated_record_has_been_synchronized/returns_true.yml +29 -29
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_synced_for_/when_no_matching_associated_record_has_been_synchronized/returns_false.yml +11 -11
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/and_a_nested_association_on_the_associated_mapping/recursively_builds_all_associations.yml +25 -25
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/returns_an_associated_record_populated_with_the_Salesforce_attributes.yml +17 -17
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/when_no_salesforce_record_is_found_for_the_association/proceeds_without_constructing_any_records.yml +11 -11
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/when_the_associated_record_has_already_been_persisted/assigns_the_existing_record.yml +17 -17
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/when_the_associated_record_has_been_cached/uses_the_cached_record.yml +17 -17
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/when_the_association_is_non-building/proceeds_without_constructing_any_records.yml +14 -14
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_synced_for_/when_a_matching_associated_record_has_been_synchronized/returns_true.yml +17 -17
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_synced_for_/when_no_matching_associated_record_has_been_synchronized/returns_false.yml +17 -17
- data/test/cassettes/Restforce_DB_Associator/_run/given_a_BelongsTo_association/given_another_record_for_association/when_the_Salesforce_association_is_out_of_date/updates_the_association_ID_in_Salesforce.yml +30 -30
- data/test/cassettes/Restforce_DB_Associator/_run/given_a_BelongsTo_association/given_another_record_for_association/when_the_database_association_is_out_of_date/updates_the_associated_record_in_the_database.yml +33 -33
- data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_mapping_has_no_conditions/does_not_drop_the_synchronized_database_record.yml +6 -6
- data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_record_does_not_meet_the_mapping_conditions/but_meets_conditions_for_a_parallel_mapping/does_not_drop_the_synchronized_database_record.yml +238 -0
- data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_record_does_not_meet_the_mapping_conditions/{for_a_non-Passive_strategy/drops_the_synchronized_database_record.yml → drops_the_synchronized_database_record.yml} +11 -11
- data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_record_meets_the_mapping_conditions/does_not_drop_the_synchronized_database_record.yml +12 -12
- data/test/cassettes/Restforce_DB_Collector/_run/given_a_Salesforce_record_with_an_associated_database_record/returns_the_attributes_from_both_records.yml +12 -12
- data/test/cassettes/Restforce_DB_Collector/_run/given_an_existing_Salesforce_record/returns_the_attributes_from_the_Salesforce_record.yml +12 -12
- data/test/cassettes/Restforce_DB_Collector/_run/given_an_existing_database_record/returns_the_attributes_from_the_database_record.yml +3 -3
- data/test/cassettes/Restforce_DB_Initializer/_run/given_an_existing_Salesforce_record/for_a_Passive_strategy/does_not_create_a_database_record.yml +6 -6
- data/test/cassettes/Restforce_DB_Initializer/_run/given_an_existing_Salesforce_record/for_an_Always_strategy/creates_a_matching_database_record.yml +10 -10
- data/test/cassettes/Restforce_DB_Initializer/_run/given_an_existing_database_record/for_an_Always_strategy/populates_Salesforce_with_the_new_record.yml +17 -17
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_synced_/when_a_matching_database_record_exists/returns_true.yml +9 -9
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_synced_/when_no_matching_database_record_exists/returns_false.yml +9 -9
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_update_/updates_the_local_record_with_the_passed_attributes.yml +14 -14
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_update_/updates_the_record_in_Salesforce_with_the_passed_attributes.yml +17 -17
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_all/returns_a_list_of_the_existing_records_in_Salesforce.yml +9 -9
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_create_/creates_a_record_in_Salesforce_from_the_passed_database_record_s_attributes.yml +12 -12
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_create_/updates_the_database_record_with_the_Salesforce_record_s_ID.yml +12 -12
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/finds_existing_records_in_Salesforce.yml +9 -9
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/given_a_set_of_mapping_conditions/when_a_record_does_not_meet_the_conditions/does_not_find_the_record.yml +8 -8
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/given_a_set_of_mapping_conditions/when_a_record_meets_the_conditions/finds_the_record.yml +9 -9
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/returns_nil_when_no_matching_record_exists.yml +3 -3
- data/test/cassettes/Restforce_DB_Strategies_Always/_build_/given_a_Salesforce_record/wants_to_build_a_new_matching_record.yml +9 -9
- data/test/cassettes/Restforce_DB_Strategies_Always/_build_/given_a_Salesforce_record/with_a_corresponding_database_record/does_not_want_to_build_a_new_record.yml +9 -9
- data/test/cassettes/Restforce_DB_Strategies_Associated/_build_/given_an_inverse_mapping/with_a_synchronized_association_record/wants_to_build_a_new_record.yml +17 -17
- data/test/cassettes/Restforce_DB_Strategies_Associated/_build_/given_an_inverse_mapping/with_an_existing_database_record/does_not_want_to_build_a_new_record.yml +14 -14
- data/test/cassettes/Restforce_DB_Strategies_Associated/_build_/given_an_inverse_mapping/with_no_synchronized_association_record/does_not_want_to_build_a_new_record.yml +17 -17
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/updates_the_database_record.yml +14 -14
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/updates_the_salesforce_record.yml +17 -17
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_no_associated_database_record/does_nothing_for_this_specific_mapping.yml +12 -12
- data/test/lib/restforce/db/associations/belongs_to_test.rb +17 -0
- data/test/lib/restforce/db/cleaner_test.rb +20 -4
- data/test/support/active_record.rb +3 -0
- data/test/support/vcr.rb +8 -0
- metadata +5 -3
@@ -38,11 +38,11 @@ http_interactions:
|
|
38
38
|
body:
|
39
39
|
encoding: ASCII-8BIT
|
40
40
|
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1428689765521","token_type":"Bearer","instance_url":"https://<host>","signature":"iVn8K79ySw/26GQM8/ZHlQ7tE1l2EUH+WGphHVWkQFg=","access_token":"00D1a000000H3O9!AQ4AQO48p7VCPJTqs85KtBx3kEBjPhP.lCvkGK3ayiFCcg2H2nbFwdKZaBetwWzVAndOSywkSvoT7_YZEmwLnhtbJ1A3E5NZ"}'
|
41
|
-
http_version:
|
41
|
+
http_version:
|
42
42
|
recorded_at: Fri, 10 Apr 2015 18:16:05 GMT
|
43
43
|
- request:
|
44
44
|
method: post
|
45
|
-
uri: https://<host>/services/data
|
45
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c
|
46
46
|
body:
|
47
47
|
encoding: UTF-8
|
48
48
|
string: '{"Name":"Custom object","Example_Field__c":"Some sample text"}'
|
@@ -72,7 +72,7 @@ http_interactions:
|
|
72
72
|
Sforce-Limit-Info:
|
73
73
|
- api-usage=58/15000
|
74
74
|
Location:
|
75
|
-
- "/services/data
|
75
|
+
- "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LXBfAAO"
|
76
76
|
Content-Type:
|
77
77
|
- application/json;charset=UTF-8
|
78
78
|
Transfer-Encoding:
|
@@ -80,11 +80,11 @@ http_interactions:
|
|
80
80
|
body:
|
81
81
|
encoding: ASCII-8BIT
|
82
82
|
string: '{"id":"a001a000001LXBfAAO","success":true,"errors":[]}'
|
83
|
-
http_version:
|
83
|
+
http_version:
|
84
84
|
recorded_at: Fri, 10 Apr 2015 18:16:05 GMT
|
85
85
|
- request:
|
86
86
|
method: get
|
87
|
-
uri: https://<host>/services/data
|
87
|
+
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001LXBfAAO%27
|
88
88
|
body:
|
89
89
|
encoding: US-ASCII
|
90
90
|
string: ''
|
@@ -117,13 +117,13 @@ http_interactions:
|
|
117
117
|
- chunked
|
118
118
|
body:
|
119
119
|
encoding: ASCII-8BIT
|
120
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data
|
120
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LXBfAAO"},"Id":"a001a000001LXBfAAO","SystemModstamp":"2015-04-10T18:16:05.000+0000","Name":"Custom
|
121
121
|
object","Example_Field__c":"Some sample text"}]}'
|
122
|
-
http_version:
|
122
|
+
http_version:
|
123
123
|
recorded_at: Fri, 10 Apr 2015 18:16:05 GMT
|
124
124
|
- request:
|
125
125
|
method: get
|
126
|
-
uri: https://<host>/services/data
|
126
|
+
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001LXBfAAO%27
|
127
127
|
body:
|
128
128
|
encoding: US-ASCII
|
129
129
|
string: ''
|
@@ -156,13 +156,13 @@ http_interactions:
|
|
156
156
|
- chunked
|
157
157
|
body:
|
158
158
|
encoding: ASCII-8BIT
|
159
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data
|
159
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LXBfAAO"},"Id":"a001a000001LXBfAAO","SystemModstamp":"2015-04-10T18:16:05.000+0000","Name":"Custom
|
160
160
|
object","Example_Field__c":"Some sample text"}]}'
|
161
|
-
http_version:
|
161
|
+
http_version:
|
162
162
|
recorded_at: Fri, 10 Apr 2015 18:16:06 GMT
|
163
163
|
- request:
|
164
164
|
method: delete
|
165
|
-
uri: https://<host>/services/data
|
165
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LXBfAAO
|
166
166
|
body:
|
167
167
|
encoding: US-ASCII
|
168
168
|
string: ''
|
@@ -192,6 +192,6 @@ http_interactions:
|
|
192
192
|
body:
|
193
193
|
encoding: UTF-8
|
194
194
|
string: ''
|
195
|
-
http_version:
|
195
|
+
http_version:
|
196
196
|
recorded_at: Fri, 10 Apr 2015 18:16:09 GMT
|
197
197
|
recorded_with: VCR 2.9.3
|
@@ -60,6 +60,23 @@ describe Restforce::DB::Associations::BelongsTo do
|
|
60
60
|
it "returns a nil lookup value in the hash" do
|
61
61
|
expect(association.lookups(object)).to_equal("Friend__c" => nil)
|
62
62
|
end
|
63
|
+
|
64
|
+
describe "and the underlying association is one-to-many" do
|
65
|
+
let(:association) { Restforce::DB::Associations::BelongsTo.new(:admirers, through: "Friend__c") }
|
66
|
+
let(:inverse_mapping) do
|
67
|
+
Restforce::DB::Mapping.new(User, "Contact").tap do |map|
|
68
|
+
map.fields = { email: "Email" }
|
69
|
+
map.associations << Restforce::DB::Associations::HasOne.new(
|
70
|
+
:favorite,
|
71
|
+
through: "Friend__c",
|
72
|
+
)
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
it "still returns a nil lookup value in the hash" do
|
77
|
+
expect(association.lookups(object)).to_equal("Friend__c" => nil)
|
78
|
+
end
|
79
|
+
end
|
63
80
|
end
|
64
81
|
end
|
65
82
|
|
@@ -16,6 +16,10 @@ describe Restforce::DB::Cleaner do
|
|
16
16
|
end
|
17
17
|
let(:salesforce_id) { Salesforce.create!(salesforce_model, attributes) }
|
18
18
|
|
19
|
+
before do
|
20
|
+
Restforce::DB::Registry << mapping
|
21
|
+
end
|
22
|
+
|
19
23
|
describe "given a synchronized Salesforce record" do
|
20
24
|
before do
|
21
25
|
database_model.create!(salesforce_id: salesforce_id)
|
@@ -47,13 +51,25 @@ describe Restforce::DB::Cleaner do
|
|
47
51
|
mapping.conditions = ["Name != '#{attributes['Name']}'"]
|
48
52
|
end
|
49
53
|
|
50
|
-
|
54
|
+
it "drops the synchronized database record" do
|
55
|
+
cleaner.run
|
56
|
+
expect(database_model.last).to_be_nil
|
57
|
+
end
|
58
|
+
|
59
|
+
describe "but meets conditions for a parallel mapping" do
|
60
|
+
let(:parallel_mapping) do
|
61
|
+
Restforce::DB::Mapping.new(database_model, salesforce_model).tap do |map|
|
62
|
+
map.conditions = ["Name = '#{attributes['Name']}'"]
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
51
66
|
before do
|
52
|
-
|
67
|
+
Restforce::DB::Registry << parallel_mapping
|
53
68
|
end
|
54
69
|
|
55
|
-
it "
|
56
|
-
|
70
|
+
it "does not drop the synchronized database record" do
|
71
|
+
cleaner.run
|
72
|
+
expect(database_model.last).to_not_be_nil
|
57
73
|
end
|
58
74
|
end
|
59
75
|
end
|
@@ -31,6 +31,7 @@ ActiveRecord::Schema.define do
|
|
31
31
|
|
32
32
|
create_table :users do |table|
|
33
33
|
table.column :email, :string
|
34
|
+
table.column :favorite_id, :integer
|
34
35
|
table.column :salesforce_id, :string
|
35
36
|
table.column :synchronized_at, :datetime
|
36
37
|
table.timestamps null: false
|
@@ -44,6 +45,7 @@ end
|
|
44
45
|
class CustomObject < ActiveRecord::Base
|
45
46
|
|
46
47
|
belongs_to :user, inverse_of: :custom_object, autosave: true
|
48
|
+
has_many :admirers, class_name: "User", inverse_of: :favorite, foreign_key: :favorite_id
|
47
49
|
has_many :details, inverse_of: :custom_object
|
48
50
|
|
49
51
|
end
|
@@ -59,5 +61,6 @@ end
|
|
59
61
|
class User < ActiveRecord::Base
|
60
62
|
|
61
63
|
has_one :custom_object, inverse_of: :user
|
64
|
+
belongs_to :favorite, class_name: "CustomObject", inverse_of: :admirers, foreign_key: :favorite_id
|
62
65
|
|
63
66
|
end
|
data/test/support/vcr.rb
CHANGED
@@ -18,6 +18,14 @@ VCR.configure do |c|
|
|
18
18
|
CGI.escape(Secrets["client"][secret])
|
19
19
|
end
|
20
20
|
end
|
21
|
+
|
22
|
+
c.filter_sensitive_data("<api_version>") do
|
23
|
+
api_version = Secrets["client"].fetch("api_version") do
|
24
|
+
Restforce::DB::Configuration::DEFAULT_API_VERSION
|
25
|
+
end
|
26
|
+
|
27
|
+
"v#{api_version}"
|
28
|
+
end
|
21
29
|
end
|
22
30
|
|
23
31
|
MinitestVcr::Spec.configure!
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: restforce-db
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Horner
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -256,6 +256,7 @@ files:
|
|
256
256
|
- test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/when_the_association_is_non-building/proceeds_without_constructing_any_records.yml
|
257
257
|
- test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/with_an_unrelated_association_mapping/proceeds_without_raising_an_error.yml
|
258
258
|
- test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_lookups/returns_a_hash_of_the_associated_records_lookup_IDs.yml
|
259
|
+
- test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_lookups/when_there_is_currently_no_associated_record/and_the_underlying_association_is_one-to-many/still_returns_a_nil_lookup_value_in_the_hash.yml
|
259
260
|
- test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_lookups/when_there_is_currently_no_associated_record/returns_a_nil_lookup_value_in_the_hash.yml
|
260
261
|
- test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_synced_for_/when_a_matching_associated_record_has_been_synchronized/returns_true.yml
|
261
262
|
- test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_synced_for_/when_no_matching_associated_record_has_been_synchronized/returns_false.yml
|
@@ -277,7 +278,8 @@ files:
|
|
277
278
|
- test/cassettes/Restforce_DB_Associator/_run/given_a_BelongsTo_association/given_another_record_for_association/when_the_Salesforce_association_is_out_of_date/updates_the_association_ID_in_Salesforce.yml
|
278
279
|
- test/cassettes/Restforce_DB_Associator/_run/given_a_BelongsTo_association/given_another_record_for_association/when_the_database_association_is_out_of_date/updates_the_associated_record_in_the_database.yml
|
279
280
|
- test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_mapping_has_no_conditions/does_not_drop_the_synchronized_database_record.yml
|
280
|
-
- test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_record_does_not_meet_the_mapping_conditions/
|
281
|
+
- test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_record_does_not_meet_the_mapping_conditions/but_meets_conditions_for_a_parallel_mapping/does_not_drop_the_synchronized_database_record.yml
|
282
|
+
- test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_record_does_not_meet_the_mapping_conditions/drops_the_synchronized_database_record.yml
|
281
283
|
- test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_record_meets_the_mapping_conditions/does_not_drop_the_synchronized_database_record.yml
|
282
284
|
- test/cassettes/Restforce_DB_Collector/_run/given_a_Salesforce_record_with_an_associated_database_record/returns_the_attributes_from_both_records.yml
|
283
285
|
- test/cassettes/Restforce_DB_Collector/_run/given_an_existing_Salesforce_record/returns_the_attributes_from_the_Salesforce_record.yml
|