Commit ea3f6e0
Changed files (1)
spec
scim
kit
spec/scim/kit/v2/filter_spec.rb
@@ -126,33 +126,31 @@ RSpec.describe Scim::Kit::V2::Filter do
[
# '',
- # %Q(userType ne "Employee" and not (emails co "example.com" or emails.value co "example.org")),
# %Q(userType eq "Employee" and emails[type eq "work" and value co "@example.com"]),
# %Q(emails[type eq "work" and value co "@example.com"] or ims[type eq "xmpp" and value co "@foo.com"]),
- 'userName pr and not (userName eq "hello@example.com")',
- '(userType ne "Employee") and (not((emails co "example.com") or (emails.value co "example.org")))',
- '(userType eq "Employee") and (emails.type eq "work")',
- '(userType eq "Employee") and (emails[(type eq "work") and (value co "@example.com")])',
- '(emails[(type eq "work") and (value co "@example.com")]) or (ims[(type eq "xmpp") and (value co "@foo.com")])',
- '(title pr) and (userType eq "Employee")',
- '(title pr) or (userType eq "Intern")',
- 'title pr',
- %(userName eq "bjensen"),
- %(name.familyName co "O'Malley"),
- %(userName sw "J"),
- %(urn:ietf:params:scim:schemas:core:2.0:User:userName sw "J"),
- %(title pr),
- %(meta.lastModified gt "2011-05-13T04:42:34Z"),
%(meta.lastModified ge "2011-05-13T04:42:34Z"),
- %(meta.lastModified lt "2011-05-13T04:42:34Z"),
+ %(meta.lastModified gt "2011-05-13T04:42:34Z"),
%(meta.lastModified le "2011-05-13T04:42:34Z"),
+ %(meta.lastModified lt "2011-05-13T04:42:34Z"),
+ %(name.familyName co "O'Malley"),
+ %(schemas eq "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"),
%(title pr and userType eq "Employee"),
%(title pr or userType eq "Intern"),
- %(schemas eq "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"),
+ %(title pr),
+ %(urn:ietf:params:scim:schemas:core:2.0:User:userName sw "J"),
+ %(userName eq "bjensen"),
+ %(userName sw "J"),
%(userType eq "Employee" and (emails co "example.com" or emails.value co "example.org")),
- %(userType eq "Employee" and (emails.type eq "work"))
+ %(userType eq "Employee" and (emails.type eq "work")),
+ %(userType ne "Employee" and not (emails co "example.com" or emails.value co "example.org")),
+ '(emails[(type eq "work") and (value co "@example.com")]) or (ims[(type eq "xmpp") and (value co "@foo.com")])',
+ '(title pr) and (userType eq "Employee")',
+ '(title pr) or (userType eq "Intern")',
+ '(userType eq "Employee") and (emails.type eq "work")',
+ '(userType eq "Employee") and (emails[(type eq "work") and (value co "@example.com")])',
+ 'title pr',
+ 'userName pr and not (userName eq "hello@example.com")',
].each do |x|
- before { puts x }
specify { expect(subject.parse_with_debug(x)).to be_truthy }
end