Commit 7207d9dc authored by Markus Koller's avatar Markus Koller Committed by Alex Kalderimis

Remove reference to jenkins_service_id

parent c4227778
......@@ -14,11 +14,11 @@ RSpec.describe DeleteTemplateServicesDuplicatedByType do
end
it 'deletes service templates duplicated by type except the one with the lowest ID' do
jenkins_service_id = services.where(type: 'JenkinsService').order(:id).pluck(:id).first
jenkins_integration_id = services.where(type: 'JenkinsService').order(:id).pluck(:id).first
jira_integration_id = services.where(type: 'JiraService').pluck(:id).first
migrate!
expect(services.pluck(:id)).to contain_exactly(jenkins_service_id, jira_integration_id)
expect(services.pluck(:id)).to contain_exactly(jenkins_integration_id, jira_integration_id)
end
end
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