summaryrefslogtreecommitdiff
path: root/spec/policies
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-05-05 12:25:24 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-05-05 12:25:24 +0200
commit936367538043854c7b093b71ca315b8e469c55a4 (patch)
tree9cf4a769d9cffd234ad00cfadb940bcb14553c07 /spec/policies
parentb6facd8313f2996ffef9be8eb2c98d5146d7a137 (diff)
downloadgitlab-ce-936367538043854c7b093b71ca315b8e469c55a4.tar.gz
Use update build policy instead of new play policy
Diffstat (limited to 'spec/policies')
-rw-r--r--spec/policies/ci/build_policy_spec.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/spec/policies/ci/build_policy_spec.rb b/spec/policies/ci/build_policy_spec.rb
index e4693cdcef0..3f4ce222b60 100644
--- a/spec/policies/ci/build_policy_spec.rb
+++ b/spec/policies/ci/build_policy_spec.rb
@@ -108,8 +108,8 @@ describe Ci::BuildPolicy, :models do
create(:ci_build, :manual, ref: 'some-ref', pipeline: pipeline)
end
- it 'does not include ability to play build' do
- expect(policies).not_to include :play_build
+ it 'does not include ability to update build' do
+ expect(policies).not_to include :update_build
end
end
@@ -118,8 +118,8 @@ describe Ci::BuildPolicy, :models do
create(:ci_build, ref: 'some-ref', pipeline: pipeline)
end
- it 'does not include ability to play build' do
- expect(policies).not_to include :play_build
+ it 'includes ability to update build' do
+ expect(policies).to include :update_build
end
end
end
@@ -128,16 +128,16 @@ describe Ci::BuildPolicy, :models do
context 'when build is a manual action' do
let(:build) { create(:ci_build, :manual, pipeline: pipeline) }
- it 'includes ability to play build' do
- expect(policies).to include :play_build
+ it 'includes ability to update build' do
+ expect(policies).to include :update_build
end
end
context 'when build is not a manual action' do
- let(:build) { create(:ci_build, pipeline: pipeline) }
+ let(:build) { create(:ci_build, pipeline: pipeline) }
- it 'does not include ability to play build' do
- expect(policies).not_to include :play_build
+ it 'includes ability to update build' do
+ expect(policies).to include :update_build
end
end
end