diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-03 13:29:00 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-03 13:29:00 +0300 |
commit | 717fdd6d42f119dd1e0f457c40563cc35985fbae (patch) | |
tree | cdcb1a8167a809c8c203d50dcff65ef44d0eace2 /spec/lib | |
parent | b2acebb4efdf8023f685cfd14489c49e56d126a7 (diff) |
Rename Ci::Build commit to pipeline
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/ci/charts_spec.rb | 2 | ||||
-rw-r--r-- | spec/lib/gitlab/badge/build_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/ci/charts_spec.rb b/spec/lib/ci/charts_spec.rb index 9d1215a5760..2be50edc347 100644 --- a/spec/lib/ci/charts_spec.rb +++ b/spec/lib/ci/charts_spec.rb @@ -5,7 +5,7 @@ describe Ci::Charts, lib: true do context "build_times" do before do @commit = FactoryGirl.create(:ci_commit) - FactoryGirl.create(:ci_build, commit: @commit) + FactoryGirl.create(:ci_build, pipeline: @commit) end it 'should return build times in minutes' do diff --git a/spec/lib/gitlab/badge/build_spec.rb b/spec/lib/gitlab/badge/build_spec.rb index b6f7a2e7ec4..e87bf41ea25 100644 --- a/spec/lib/gitlab/badge/build_spec.rb +++ b/spec/lib/gitlab/badge/build_spec.rb @@ -43,7 +43,7 @@ describe Gitlab::Badge::Build do context 'build exists' do let(:ci_commit) { create(:ci_commit, project: project, sha: sha, ref: branch) } - let!(:build) { create(:ci_build, commit: ci_commit) } + let!(:build) { create(:ci_build, pipeline: ci_commit) } context 'build success' do |