Sha256: 439eaf52a478ffdeadaeabd7e00a47bdbebeb006a095ad89477da46adc30787a
Contents?: true
Size: 663 Bytes
Versions: 6
Compression:
Stored size: 663 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe ScimRails::ScimQueryParser do let(:query_string) { 'userName eq "taro"' } let(:queryable_attributes) { { userName: :name, emails: [ { value: :email } ] } } let(:parser) { described_class.new(query_string, queryable_attributes) } describe '#attribute' do context 'userName' do it { expect(parser.attribute).to eq :name } end context 'emails[type eq "work"].value' do let(:query_string) { 'emails[type eq "work"].value eq "taro@example.com"' } it { expect(parser.attribute).to eq :email } end end end
Version data entries
6 entries across 6 versions & 1 rubygems