diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-20 12:10:30 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-20 12:10:30 +0300 |
commit | b794758ce4c96fa13c4eefdb97f0852641604081 (patch) | |
tree | ae33ca92627b7271d503fec0994da4a3ee63bf82 /spec/factories/integrations.rb | |
parent | 763dd8a47a4e353119f54de0919e10a4fa1de879 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories/integrations.rb')
-rw-r--r-- | spec/factories/integrations.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/factories/integrations.rb b/spec/factories/integrations.rb index 6bd6deb262a..8c3fc31b2ef 100644 --- a/spec/factories/integrations.rb +++ b/spec/factories/integrations.rb @@ -6,7 +6,7 @@ FactoryBot.define do type { 'Integration' } end - factory :custom_issue_tracker_service, class: 'CustomIssueTrackerService' do + factory :custom_issue_tracker_service, class: 'Integrations::CustomIssueTracker' do project active { true } issue_tracker @@ -85,25 +85,25 @@ FactoryBot.define do confluence_url { 'https://example.atlassian.net/wiki' } end - factory :bugzilla_service do + factory :bugzilla_service, class: 'Integrations::Bugzilla' do project active { true } issue_tracker end - factory :redmine_service do + factory :redmine_service, class: 'Integrations::Redmine' do project active { true } issue_tracker end - factory :youtrack_service do + factory :youtrack_service, class: 'Integrations::Youtrack' do project active { true } issue_tracker end - factory :ewm_service do + factory :ewm_service, class: 'Integrations::Ewm' do project active { true } issue_tracker @@ -134,7 +134,7 @@ FactoryBot.define do external_wiki_url { 'http://external-wiki-url.com' } end - factory :open_project_service do + factory :open_project_service, class: 'Integrations::OpenProject' do project active { true } @@ -182,13 +182,13 @@ FactoryBot.define do create_data { false } after(:build) do - IssueTrackerService.skip_callback(:validation, :before, :handle_properties) + Integrations::IssueTracker.skip_callback(:validation, :before, :handle_properties) end to_create { |instance| instance.save!(validate: false) } after(:create) do - IssueTrackerService.set_callback(:validation, :before, :handle_properties) + Integrations::IssueTracker.set_callback(:validation, :before, :handle_properties) end end |