Commit 25059dd3 authored by James Lopez's avatar James Lopez

fix spec failures

parent 7ca8be36
......@@ -8,7 +8,7 @@ class LdapGroupLink < ActiveRecord::Base
validates :cn, uniqueness: { scope: [:group_id, :provider] }, unless: :filter
validates :filter, :group_access, :group_id, presence: true, unless: :cn
validates :filter, uniqueness: { scope: [:group_id, :provider] }, unless: :cn
validates :filter, ldap_filter: true
validates :filter, ldap_filter: true, if: :filter
validates :group_access, inclusion: { in: Gitlab::Access.all_values }
validates :provider, presence: true
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment