diff options
author | Igor <idrozdov@gitlab.com> | 2019-03-07 17:59:43 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2019-03-07 17:59:43 +0300 |
commit | e779477e8c9df3baf727ed5b52d9a33ad0f1a716 (patch) | |
tree | 741094abcd1d15290a888d32d1b4994c919015c6 /spec/lib/api | |
parent | c87b0696b6c000e5ced88dd33f5e662e8e231864 (diff) |
Revert "Merge branch 'id-1951-filter-merge-requests-by-approvers' into 'master'"
This reverts merge request !24982
Diffstat (limited to 'spec/lib/api')
-rw-r--r-- | spec/lib/api/helpers/custom_validators_spec.rb | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/spec/lib/api/helpers/custom_validators_spec.rb b/spec/lib/api/helpers/custom_validators_spec.rb index 9945d598a14..41e6fb47b11 100644 --- a/spec/lib/api/helpers/custom_validators_spec.rb +++ b/spec/lib/api/helpers/custom_validators_spec.rb @@ -50,29 +50,6 @@ describe API::Helpers::CustomValidators do end end - describe API::Helpers::CustomValidators::ArrayNoneAny do - subject do - described_class.new(['test'], {}, false, scope.new) - end - - context 'valid parameters' do - it 'does not raise a validation error' do - expect_no_validation_error({ 'test' => [] }) - expect_no_validation_error({ 'test' => [1, 2, 3] }) - 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 - - context 'invalid parameters' do - it 'should raise a validation error' do - expect_validation_error({ 'test' => 'some_other_string' }) - end - end - end - def expect_no_validation_error(params) expect { validate_test_param!(params) }.not_to raise_error end |