diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-03 13:09:49 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-03 13:09:49 +0200 |
commit | 3577b57f6b03a0d3c3d32daab6dc6ccf5f6e45f7 (patch) | |
tree | bb8ead689d855cc783e9eddce848d74934de9c19 /spec/factories | |
parent | 717fdd6d42f119dd1e0f457c40563cc35985fbae (diff) | |
download | gitlab-ce-3577b57f6b03a0d3c3d32daab6dc6ccf5f6e45f7.tar.gz |
Try to use `pipeline` where applicable
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/ci/builds.rb | 2 | ||||
-rw-r--r-- | spec/factories/commit_statuses.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/factories/ci/builds.rb b/spec/factories/ci/builds.rb index e2cb08d2a8b..903e331296a 100644 --- a/spec/factories/ci/builds.rb +++ b/spec/factories/ci/builds.rb @@ -43,7 +43,7 @@ FactoryGirl.define do end after(:build) do |build, evaluator| - build.project = build.commit.project + build.project = build.pipeline.project end factory :ci_not_started_build do diff --git a/spec/factories/commit_statuses.rb b/spec/factories/commit_statuses.rb index 67301fbd9a9..65afcc5e50d 100644 --- a/spec/factories/commit_statuses.rb +++ b/spec/factories/commit_statuses.rb @@ -8,7 +8,7 @@ FactoryGirl.define do finished_at 'Tue, 26 Jan 2016 08:23:42 +0100' after(:build) do |build, evaluator| - build.project = build.commit.project + build.project = build.pipeline.project end factory :generic_commit_status, class: GenericCommitStatus do |