Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
efb7bb0a
Commit
efb7bb0a
authored
Feb 06, 2020
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't hardcode IDs in migration spec
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
6341e336
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
spec/migrations/20190924152703_migrate_issue_trackers_data_spec.rb
...ations/20190924152703_migrate_issue_trackers_data_spec.rb
+8
-8
No files found.
spec/migrations/20190924152703_migrate_issue_trackers_data_spec.rb
View file @
efb7bb0a
...
...
@@ -14,28 +14,28 @@ describe MigrateIssueTrackersData, :migration do
}
end
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
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
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
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
let!
(
:youtrack_service_empty
)
do
services
.
create
(
id:
14
,
type:
'YoutrackService'
,
properties:
''
,
category:
'issue_tracker'
)
services
.
create
(
type:
'YoutrackService'
,
properties:
''
,
category:
'issue_tracker'
)
end
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
let!
(
:gitlab_service_empty
)
do
services
.
create
(
id:
16
,
type:
'GitlabIssueTrackerService'
,
properties:
{},
category:
'issue_tracker'
)
services
.
create
(
type:
'GitlabIssueTrackerService'
,
properties:
{},
category:
'issue_tracker'
)
end
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
before
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment