summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-08-12 12:11:28 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-08-12 12:11:28 +0200
commit160aaca0fbfaa9848dec769019df9c0c78059b56 (patch)
tree3426eee70b6b0ba5f6ae62b419f5a4dbe56309a1
parent706d872eb2ebb462b5c226890120f51cf15ba7c5 (diff)
downloadgitlab-ce-160aaca0fbfaa9848dec769019df9c0c78059b56.tar.gz
Make pipeline to be in created state for hooks tests
-rw-r--r--spec/models/ci/pipeline_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/ci/pipeline_spec.rb b/spec/models/ci/pipeline_spec.rb
index 9c5d56fe5bb..a3f9934971a 100644
--- a/spec/models/ci/pipeline_spec.rb
+++ b/spec/models/ci/pipeline_spec.rb
@@ -2,7 +2,7 @@ require 'spec_helper'
describe Ci::Pipeline, models: true do
let(:project) { FactoryGirl.create :empty_project }
- let(:pipeline) { FactoryGirl.create :ci_empty_pipeline, project: project }
+ let(:pipeline) { FactoryGirl.create :ci_empty_pipeline, status: 'created', project: project }
it { is_expected.to belong_to(:project) }
it { is_expected.to belong_to(:user) }