summaryrefslogtreecommitdiff
path: root/spec/models/project_snippet_spec.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-11-19 06:06:07 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-11-19 06:06:07 +0000
commit3209c1a49c14cab93eb347bfca59bace30879440 (patch)
treec9f931b477fefc1e5056380eb3370c689c2fa732 /spec/models/project_snippet_spec.rb
parent7f3bff1556594dcdc1beca40d083ba7263965e21 (diff)
downloadgitlab-ce-3209c1a49c14cab93eb347bfca59bace30879440.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/project_snippet_spec.rb')
-rw-r--r--spec/models/project_snippet_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/models/project_snippet_spec.rb b/spec/models/project_snippet_spec.rb
index 46025507cb5..903671afb13 100644
--- a/spec/models/project_snippet_spec.rb
+++ b/spec/models/project_snippet_spec.rb
@@ -9,6 +9,7 @@ describe ProjectSnippet do
describe "Validation" do
it { is_expected.to validate_presence_of(:project) }
+ it { is_expected.to validate_inclusion_of(:secret).in_array([false]) }
end
describe '#embeddable?' do