spec/functional/no_tokenize_spec.rb in picky-4.17.1 vs spec/functional/no_tokenize_spec.rb in picky-4.18.0

- old
+ new

@@ -39,11 +39,11 @@ thing = Struct.new :id, :text index.add thing.new(1, ['already', 'tokenized']) expect do index.add thing.new(2, 'this should fail') - end.to raise_error('You probably set tokenize: false on category "text". It will need an Enumerator of previously tokenized tokens.') + end.to raise_error(%Q{undefined method `each' for "this should fail":String. You probably set tokenize: false on category "text". It will need an Enumerator of previously tokenized tokens.}) try = Picky::Search.new index try.search('already').ids.should == [1] end @@ -54,10 +54,10 @@ thing = Struct.new :id, :text index.add thing.new(1, ['already', 'tokenized']) expect do index.add thing.new(2, 'this should fail') - end.to raise_error('You probably set tokenize: false on category "text". It will need an Enumerator of previously tokenized tokens.') + end.to raise_error(%Q{undefined method `each' for "this should fail":String. You probably set tokenize: false on category "text". It will need an Enumerator of previously tokenized tokens.}) try = Picky::Search.new index try.search('already').ids.should == [1] end \ No newline at end of file