diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-17 11:59:07 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-17 11:59:07 +0000 |
commit | 8b573c94895dc0ac0e1d9d59cf3e8745e8b539ca (patch) | |
tree | 544930fb309b30317ae9797a9683768705d664c4 /spec/migrations/20200130145430_reschedule_migrate_issue_trackers_data_spec.rb | |
parent | 4b1de649d0168371549608993deac953eb692019 (diff) | |
download | gitlab-ce-8b573c94895dc0ac0e1d9d59cf3e8745e8b539ca.tar.gz |
Add latest changes from gitlab-org/gitlab@13-7-stable-eev13.7.0-rc42
Diffstat (limited to 'spec/migrations/20200130145430_reschedule_migrate_issue_trackers_data_spec.rb')
-rw-r--r-- | spec/migrations/20200130145430_reschedule_migrate_issue_trackers_data_spec.rb | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/spec/migrations/20200130145430_reschedule_migrate_issue_trackers_data_spec.rb b/spec/migrations/20200130145430_reschedule_migrate_issue_trackers_data_spec.rb index e140be476ab..9947718d11b 100644 --- a/spec/migrations/20200130145430_reschedule_migrate_issue_trackers_data_spec.rb +++ b/spec/migrations/20200130145430_reschedule_migrate_issue_trackers_data_spec.rb @@ -15,35 +15,35 @@ RSpec.describe RescheduleMigrateIssueTrackersData do end let!(:jira_service) do - services.create(id: 10, type: 'JiraService', properties: properties, category: 'issue_tracker') + services.create!(id: 10, 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!(id: 11, 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!(id: 12, 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!(id: 13, 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!(id: 14, type: 'YoutrackService', properties: '', category: 'issue_tracker') end let!(:gitlab_service) do - services.create(id: 15, type: 'GitlabIssueTrackerService', properties: properties, category: 'issue_tracker') + services.create!(id: 15, 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!(id: 16, type: 'GitlabIssueTrackerService', properties: {}, category: 'issue_tracker') end let!(:other_service) do - services.create(id: 17, type: 'OtherService', properties: properties, category: 'other_category') + services.create!(id: 17, type: 'OtherService', properties: properties, category: 'other_category') end before do @@ -69,7 +69,7 @@ RSpec.describe RescheduleMigrateIssueTrackersData do let(:jira_tracker_data) { table(:jira_tracker_data) } let!(:valid_issue_tracker_data) do - issue_tracker_data.create( + issue_tracker_data.create!( service_id: bugzilla_service.id, encrypted_issues_url: 'http://url.com', encrypted_issues_url_iv: 'somevalue' @@ -77,7 +77,7 @@ RSpec.describe RescheduleMigrateIssueTrackersData do end let!(:invalid_issue_tracker_data) do - issue_tracker_data.create( + issue_tracker_data.create!( service_id: bugzilla_service.id, encrypted_issues_url: 'http:url.com', encrypted_issues_url_iv: nil @@ -85,7 +85,7 @@ RSpec.describe RescheduleMigrateIssueTrackersData do end let!(:valid_jira_tracker_data) do - jira_tracker_data.create( + jira_tracker_data.create!( service_id: bugzilla_service.id, encrypted_url: 'http://url.com', encrypted_url_iv: 'somevalue' @@ -93,7 +93,7 @@ RSpec.describe RescheduleMigrateIssueTrackersData do end let!(:invalid_jira_tracker_data) do - jira_tracker_data.create( + jira_tracker_data.create!( service_id: bugzilla_service.id, encrypted_url: 'http://url.com', encrypted_url_iv: nil |