diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-05 16:54:15 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-05 16:54:15 +0300 |
commit | be834a25982746ffd85252ff502df42bb88cb9d5 (patch) | |
tree | b4d6a8ba0931e12fac08f05abea33a3b8ec2c8a2 /spec/factories/services.rb | |
parent | ee925a3597f27e92f83a50937a64068109675b3d (diff) |
Add latest changes from gitlab-org/gitlab@13-5-stable-eev13.5.0-rc32
Diffstat (limited to 'spec/factories/services.rb')
-rw-r--r-- | spec/factories/services.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/factories/services.rb b/spec/factories/services.rb index 9056fd97f13..13997080817 100644 --- a/spec/factories/services.rb +++ b/spec/factories/services.rb @@ -81,7 +81,7 @@ FactoryBot.define do project_key { nil } end - after(:build) do |service, evaluator| + before(:create) do |service, evaluator| if evaluator.create_data create(:jira_tracker_data, service: service, url: evaluator.url, api_url: evaluator.api_url, jira_issue_transition_id: evaluator.jira_issue_transition_id, @@ -130,7 +130,7 @@ FactoryBot.define do new_issue_url { 'http://new-issue.example.com' } end - after(:build) do |service, evaluator| + before(:create) do |service, evaluator| if evaluator.create_data create(:issue_tracker_data, service: service, project_url: evaluator.project_url, issues_url: evaluator.issues_url, new_issue_url: evaluator.new_issue_url @@ -151,7 +151,7 @@ FactoryBot.define do project_identifier_code { 'PRJ-1' } end - after(:build) do |service, evaluator| + before(:create) do |service, evaluator| create(:open_project_tracker_data, service: service, url: evaluator.url, api_url: evaluator.api_url, token: evaluator.token, closed_status_id: evaluator.closed_status_id, project_identifier_code: evaluator.project_identifier_code |