Commit efb7bb0a authored by Rémy Coutable's avatar Rémy Coutable

Don't hardcode IDs in migration spec

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 6341e336
...@@ -14,28 +14,28 @@ describe MigrateIssueTrackersData, :migration do ...@@ -14,28 +14,28 @@ describe MigrateIssueTrackersData, :migration do
} }
end end
let!(:jira_service) do let!(:jira_service) do
services.create(id: 10, type: 'JiraService', properties: properties, category: 'issue_tracker') services.create(type: 'JiraService', properties: properties, category: 'issue_tracker')
end end
let!(:jira_service_nil) do let!(:jira_service_nil) do
services.create(id: 11, type: 'JiraService', properties: nil, category: 'issue_tracker') services.create(type: 'JiraService', properties: nil, category: 'issue_tracker')
end end
let!(:bugzilla_service) do let!(:bugzilla_service) do
services.create(id: 12, type: 'BugzillaService', properties: properties, category: 'issue_tracker') services.create(type: 'BugzillaService', properties: properties, category: 'issue_tracker')
end end
let!(:youtrack_service) do let!(:youtrack_service) do
services.create(id: 13, type: 'YoutrackService', properties: properties, category: 'issue_tracker') services.create(type: 'YoutrackService', properties: properties, category: 'issue_tracker')
end end
let!(:youtrack_service_empty) do let!(:youtrack_service_empty) do
services.create(id: 14, type: 'YoutrackService', properties: '', category: 'issue_tracker') services.create(type: 'YoutrackService', properties: '', category: 'issue_tracker')
end end
let!(:gitlab_service) do let!(:gitlab_service) do
services.create(id: 15, type: 'GitlabIssueTrackerService', properties: properties, category: 'issue_tracker') services.create(type: 'GitlabIssueTrackerService', properties: properties, category: 'issue_tracker')
end end
let!(:gitlab_service_empty) do let!(:gitlab_service_empty) do
services.create(id: 16, type: 'GitlabIssueTrackerService', properties: {}, category: 'issue_tracker') services.create(type: 'GitlabIssueTrackerService', properties: {}, category: 'issue_tracker')
end end
let!(:other_service) do let!(:other_service) do
services.create(id: 17, type: 'OtherService', properties: properties, category: 'other_category') services.create(type: 'OtherService', properties: properties, category: 'other_category')
end end
before do before do
......
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