spec/lib/query/combination_spec.rb in picky-3.0.1 vs spec/lib/query/combination_spec.rb in picky-3.1.0

- old
+ new

@@ -4,11 +4,11 @@ describe Picky::Query::Combination do before(:each) do @bundle = stub :bundle, :identifier => :bundle_name - @token = Picky::Query::Token.processed('some_text~') + @token = Picky::Query::Token.processed('some_text~', 'Some Original~') @category = stub :category, :bundle_for => @bundle, :name => :some_category_name @combination = described_class.new @token, @category end @@ -39,10 +39,10 @@ end describe 'to_result' do context 'functional with qualifier' do before(:each) do - token = Picky::Tokenizers::Query.new.tokenize('name:Blä~').first + token = Picky::Query::Token.processed 'name:blä~', 'Blä~' @combination = Picky::Query::Combination.new token, @category end it 'should return a correct result' do @combination.to_result.should == [:some_category_name, 'Blä~', :blä] # Note: Characters not substituted. That's ok. \ No newline at end of file