Sha256: 8b6b3ee10d92d1a545bc2cd017aba5a21ad1c807175aebf57ae8bfdfc582ab5b
Contents?: true
Size: 377 Bytes
Versions: 5
Compression:
Stored size: 377 Bytes
Contents
require 'spec_helper' describe Dusen::Parser do describe '.parse' do it 'should parse field tokens first, because they usually give maximum filtering at little cost' do query = Dusen::Parser.parse('word1 field1:field1-value word2 field2:field2-value') query.collect(&:value).should == ['field1-value', 'field2-value', 'word1', 'word2'] end end end
Version data entries
5 entries across 5 versions & 1 rubygems