diff options
author | Heinrich Lee Yu <hleeyu@gmail.com> | 2018-10-26 10:47:14 +0800 |
---|---|---|
committer | Heinrich Lee Yu <hleeyu@gmail.com> | 2018-10-26 10:47:14 +0800 |
commit | e0f0c29b0cfe3c0c97191eeb96eae1299f3983d1 (patch) | |
tree | f5227f2614264fb1820ab1747579e11a5c9826c5 /spec/lib/api | |
parent | bf1ed85a9d6a932a99d0a5fdf70e72ea36c2600c (diff) | |
download | gitlab-ce-e0f0c29b0cfe3c0c97191eeb96eae1299f3983d1.tar.gz |
Support lowercase none / any
Diffstat (limited to 'spec/lib/api')
-rw-r--r-- | spec/lib/api/helpers/custom_validators_spec.rb | 2 |
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 |