summaryrefslogtreecommitdiff
path: root/spec/models/commit_spec.rb
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-03-10 14:31:22 +0200
committerValery Sizov <vsv2711@gmail.com>2015-03-10 14:31:22 +0200
commit7a6b39c9a919e05d2566bcb3b8b6a4f9b454c71e (patch)
tree462753fd59671671b1617853a70252fa0e8f2581 /spec/models/commit_spec.rb
parent96e81bddd513b1d4d9e558e13fcf4c5d5f6b141e (diff)
downloadgitlab-ci-7a6b39c9a919e05d2566bcb3b8b6a4f9b454c71e.tar.gz
rename method run_deploy_job to create_deploy_builds
Diffstat (limited to 'spec/models/commit_spec.rb')
-rw-r--r--spec/models/commit_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/commit_spec.rb b/spec/models/commit_spec.rb
index f457d09..891cd52 100644
--- a/spec/models/commit_spec.rb
+++ b/spec/models/commit_spec.rb
@@ -160,7 +160,7 @@ describe Commit do
it { should eq(project.gitlab?) }
end
- describe "run_deploy_job" do
+ describe "create_deploy_builds" do
before do
job = FactoryGirl.create :job, project: project
job1 = FactoryGirl.create :job, project: project
@@ -171,7 +171,7 @@ describe Commit do
end
it "creates new build for deploy" do
- commit.run_deploy_job(commit.ref)
+ commit.create_deploy_builds(commit.ref)
commit.builds.size.should == 3
end