summaryrefslogtreecommitdiff
path: root/spec/models
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@gitlab.com>2017-04-03 09:09:11 +0200
committerBob Van Landuyt <bob@gitlab.com>2017-04-07 17:24:11 +0200
commit02072e17ab484d7c99dc485fc3ef8348f8da8bf1 (patch)
tree2147010a5d3463550db36ca35a0aba9f2d27dac8 /spec/models
parenta6d313001a9df7f44402b1a0fca8bbd631b9fd87 (diff)
downloadgitlab-ce-02072e17ab484d7c99dc485fc3ef8348f8da8bf1.tar.gz
Rename `ProjectBuildStatus` -> `ProjectPipelineStatus`
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/ci/pipeline_spec.rb2
-rw-r--r--spec/models/project_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/ci/pipeline_spec.rb b/spec/models/ci/pipeline_spec.rb
index 504442392ea..b71fd794d4c 100644
--- a/spec/models/ci/pipeline_spec.rb
+++ b/spec/models/ci/pipeline_spec.rb
@@ -1083,7 +1083,7 @@ describe Ci::Pipeline, models: true do
let(:pipeline) { create(:ci_pipeline, sha: '123456') }
it 'updates the cached status' do
- expect(Gitlab::Cache::Ci::ProjectBuildStatus).to receive(:update_for_pipeline).
+ expect(Gitlab::Cache::Ci::ProjectPipelineStatus).to receive(:update_for_pipeline).
with(pipeline)
pipeline.block
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb
index c721b79f5d8..e9bd0180ad9 100644
--- a/spec/models/project_spec.rb
+++ b/spec/models/project_spec.rb
@@ -1949,7 +1949,7 @@ describe Project, models: true do
describe '#pipeline_status' do
let(:project) { create(:project) }
it 'builds a pipeline status' do
- expect(project.pipeline_status).to be_a(Gitlab::Cache::Ci::ProjectBuildStatus)
+ expect(project.pipeline_status).to be_a(Gitlab::Cache::Ci::ProjectPipelineStatus)
end
it 'hase a loaded pipeline status' do