summaryrefslogtreecommitdiff
path: root/spec/lib/api
diff options
context:
space:
mode:
authorHeinrich Lee Yu <hleeyu@gmail.com>2018-10-26 10:47:14 +0800
committerHeinrich Lee Yu <hleeyu@gmail.com>2018-10-26 10:47:14 +0800
commite0f0c29b0cfe3c0c97191eeb96eae1299f3983d1 (patch)
treef5227f2614264fb1820ab1747579e11a5c9826c5 /spec/lib/api
parentbf1ed85a9d6a932a99d0a5fdf70e72ea36c2600c (diff)
downloadgitlab-ce-e0f0c29b0cfe3c0c97191eeb96eae1299f3983d1.tar.gz
Support lowercase none / any
Diffstat (limited to 'spec/lib/api')
-rw-r--r--spec/lib/api/helpers/custom_validators_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/lib/api/helpers/custom_validators_spec.rb b/spec/lib/api/helpers/custom_validators_spec.rb
index 810d05c479c..41e6fb47b11 100644
--- a/spec/lib/api/helpers/custom_validators_spec.rb
+++ b/spec/lib/api/helpers/custom_validators_spec.rb
@@ -38,6 +38,8 @@ describe API::Helpers::CustomValidators do
expect_no_validation_error({ 'test' => 100 })
expect_no_validation_error({ 'test' => 'None' })
expect_no_validation_error({ 'test' => 'Any' })
+ expect_no_validation_error({ 'test' => 'none' })
+ expect_no_validation_error({ 'test' => 'any' })
end
end