Commit cb83efb3 authored by Arturo Herrero's avatar Arturo Herrero

Fix specs reload with ignored_columns

The specs pass using `reload` in both actual and expected because
`ignore_columns` is not working as expected.

We don't use `reload` anywhere in the integrations code, so we can go
with `reload` in the specs because the comparison having the ignored
columns match with the extra columns.
parent 6cc653fb
......@@ -30,7 +30,7 @@ RSpec.describe BulkCreateIntegrationService do
described_class.new(integration, batch, association).execute
expect(created_integration.reload.data_fields.attributes.except(*excluded_attributes))
.to eq(integration.data_fields.attributes.except(*excluded_attributes))
.to eq(integration.reload.data_fields.attributes.except(*excluded_attributes))
end
end
end
......
......@@ -69,7 +69,7 @@ RSpec.describe BulkUpdateIntegrationService do
described_class.new(subgroup_integration, batch).execute
expect(integration.reload.data_fields.attributes.except(*excluded_attributes))
.to eq(subgroup_integration.data_fields.attributes.except(*excluded_attributes))
.to eq(subgroup_integration.reload.data_fields.attributes.except(*excluded_attributes))
expect(integration.data_fields.attributes.except(*excluded_attributes))
.not_to eq(excluded_integration.data_fields.attributes.except(*excluded_attributes))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment