diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-04-01 23:04:56 +0000 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-04-01 23:04:56 +0000 |
commit | ecb57058b81f804f8548d6af35874136fa37743c (patch) | |
tree | 231c319263d0284ea1772582aff2fb919aaf94fd /spec/models/commit_spec.rb | |
parent | 185bc3c3a4207333b084d4294c345c10b193dacc (diff) | |
parent | edfe6539b4c39caaffce119b8d716e94c86c9169 (diff) | |
download | gitlab-ci-ecb57058b81f804f8548d6af35874136fa37743c.tar.gz |
Merge branch 'deploy_without_tests' into 'master'
Deploy without tests
Fixes #127
See merge request !51
Diffstat (limited to 'spec/models/commit_spec.rb')
-rw-r--r-- | spec/models/commit_spec.rb | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/spec/models/commit_spec.rb b/spec/models/commit_spec.rb index da57109..d4a516b 100644 --- a/spec/models/commit_spec.rb +++ b/spec/models/commit_spec.rb @@ -159,19 +159,14 @@ describe Commit do end describe "create_deploy_builds" do - before do - job = FactoryGirl.create :job, project: project - job1 = FactoryGirl.create :job, project: project + it "creates deploy build" do FactoryGirl.create :job, job_type: :deploy, project: project - FactoryGirl.create :build, commit: commit, status: :success, job: job - FactoryGirl.create :build, commit: commit, status: :success, job: job1 project.reload - end - it "creates new build for deploy" do commit.create_deploy_builds(commit.ref) + commit.builds.reload - commit.builds.size.should == 3 + commit.builds.size.should == 1 end end end |