spec/lib/query/token_spec.rb in picky-3.6.16 vs spec/lib/query/token_spec.rb in picky-4.0.0pre1
- old
+ new
@@ -405,9 +405,19 @@
it 'should not partialize a token if the text ends with ~' do
token = described_class.processed 'text~'
token.instance_variable_get(:@partial).should be_nil
end
+ it 'lets the last one win' do
+ token = described_class.processed 'text"*'
+
+ token.partial?.should == true
+ end
+ it 'lets the last one win' do
+ token = described_class.processed 'text*"'
+
+ token.partial?.should == false
+ end
end
describe "processed" do
it 'should remove *' do
token = described_class.processed 'text*'
\ No newline at end of file