Add latest changes from gitlab-org/gitlab@master
This commit is contained in:
parent
551c35b623
commit
8204ff6e6a
2 changed files with 3 additions and 3 deletions
|
@ -7,10 +7,10 @@ module Ci
|
|||
|
||||
self.table_name = "ci_sources_pipelines"
|
||||
|
||||
belongs_to :project, class_name: "Project"
|
||||
belongs_to :project, class_name: "::Project"
|
||||
belongs_to :pipeline, class_name: "Ci::Pipeline", inverse_of: :source_pipeline
|
||||
|
||||
belongs_to :source_project, class_name: "Project", foreign_key: :source_project_id
|
||||
belongs_to :source_project, class_name: "::Project", foreign_key: :source_project_id
|
||||
belongs_to :source_job, class_name: "CommitStatus", foreign_key: :source_job_id
|
||||
belongs_to :source_bridge, class_name: "Ci::Bridge", foreign_key: :source_job_id
|
||||
belongs_to :source_pipeline, class_name: "Ci::Pipeline", foreign_key: :source_pipeline_id
|
||||
|
|
|
@ -6,7 +6,7 @@ RSpec.describe Ci::Sources::Pipeline do
|
|||
it { is_expected.to belong_to(:project) }
|
||||
it { is_expected.to belong_to(:pipeline) }
|
||||
|
||||
it { is_expected.to belong_to(:source_project) }
|
||||
it { is_expected.to belong_to(:source_project).class_name('::Project') }
|
||||
it { is_expected.to belong_to(:source_job) }
|
||||
it { is_expected.to belong_to(:source_bridge) }
|
||||
it { is_expected.to belong_to(:source_pipeline) }
|
||||
|
|
Loading…
Reference in a new issue