diff options
Diffstat (limited to 'spec/models/commit_spec.rb')
-rw-r--r-- | spec/models/commit_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/commit_spec.rb b/spec/models/commit_spec.rb index c4056e3..1658ae6 100644 --- a/spec/models/commit_spec.rb +++ b/spec/models/commit_spec.rb @@ -132,8 +132,8 @@ describe Commit do describe "create_deploy_builds" do it "creates deploy build" do - FactoryGirl.create :job, job_type: :deploy, project: project - project.reload + config_processor = GitlabCiYamlProcessor.new(gitlab_ci_yaml) + commit.stub(:config_processor).and_return(config_processor) commit.create_deploy_builds commit.builds.reload |