spec/lib/query/combination_spec.rb in picky-2.7.0 vs spec/lib/query/combination_spec.rb in picky-3.0.0.pre1
- old
+ new
@@ -1,14 +1,14 @@
# coding: utf-8
#
require 'spec_helper'
-describe Query::Combination do
+describe Picky::Query::Combination do
before(:each) do
@bundle = stub :bundle, :identifier => :bundle_name
- @token = Query::Token.processed('some_text~')
+ @token = Picky::Query::Token.processed('some_text~')
@category = stub :category, :bundle_for => @bundle, :name => :some_category_name
@combination = described_class.new @token, @category
end
@@ -39,12 +39,12 @@
end
describe 'to_result' do
context 'functional with qualifier' do
before(:each) do
- token = Tokenizers::Query.new.tokenize('name:Blä~').first
+ token = Picky::Tokenizers::Query.new.tokenize('name:Blä~').first
- @combination = Query::Combination.new token, @category
+ @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.
end
end
\ No newline at end of file