Make pipeline to be in created state for hooks tests

This commit is contained in:
Kamil Trzcinski 2016-08-12 12:11:28 +02:00
parent 706d872eb2
commit 160aaca0fb

View file

@ -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) }