summaryrefslogtreecommitdiff
path: root/spec/services
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-08-31 17:01:43 +0900
committerShinya Maeda <shinya@gitlab.com>2017-09-03 23:49:10 +0900
commitd3bf01608013eac24764c1dacd51f8b841dd9bf1 (patch)
tree34a3aee86168c0ae4c017de39bf8918dc7bfafbf /spec/services
parenta2cde2847c68e8061f6f40f106502fa164be7b02 (diff)
downloadgitlab-ce-d3bf01608013eac24764c1dacd51f8b841dd9bf1.tar.gz
Remove access_level index from runner. Add protected on ci_pipelines. Add protected index on ci_builds.
Diffstat (limited to 'spec/services')
-rw-r--r--spec/services/ci/create_pipeline_service_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/services/ci/create_pipeline_service_spec.rb b/spec/services/ci/create_pipeline_service_spec.rb
index 4ba3dada37c..8b0573db846 100644
--- a/spec/services/ci/create_pipeline_service_spec.rb
+++ b/spec/services/ci/create_pipeline_service_spec.rb
@@ -398,6 +398,7 @@ describe Ci::CreatePipelineService do
it 'creates a pipeline' do
expect(execute_service).to be_persisted
expect(Ci::Pipeline.count).to eq(1)
+ expect(Ci::Pipeline.last).to be_protected
end
end
@@ -473,6 +474,7 @@ describe Ci::CreatePipelineService do
expect(execute_service(trigger_request: trigger_request))
.to be_persisted
expect(Ci::Pipeline.count).to eq(1)
+ expect(Ci::Pipeline.last).not_to be_protected
end
end
end