spec/models/blacklight/solr/request_spec.rb in blacklight-8.0.0.beta8 vs spec/models/blacklight/solr/request_spec.rb in blacklight-8.0.0

- old
+ new

@@ -43,11 +43,11 @@ it 'handles multiple queries by converting it to a boolean query' do subject.append_query 'this is my query' subject.append_query 'another:query' expect(subject).not_to have_key 'q' - expect(subject.dig('json', 'query', 'bool', 'must')).to match_array ['this is my query', 'another:query'] + expect(subject.dig('json', 'query', 'bool', 'must')).to contain_exactly('this is my query', 'another:query') end end describe '#append_boolean_query' do it 'populates the boolean query with the queries' do @@ -60,9 +60,9 @@ it 'converts existing q parameters to a boolean query' do subject['q'] = 'some query' subject.append_boolean_query :must, 'also required' - expect(subject.dig('json', 'query', 'bool', 'must')).to match_array ['some query', 'also required'] + expect(subject.dig('json', 'query', 'bool', 'must')).to contain_exactly('some query', 'also required') end end end