spec/functional/backends/memory_spec.rb in picky-3.6.16 vs spec/functional/backends/memory_spec.rb in picky-4.0.0pre1
- old
+ new
@@ -45,20 +45,20 @@
books.search('title').ids.should == []
end
it 'handles removing with more than one entry' do
data.add Book.new(2, 'title', 'author')
- books.search('title').ids.should == ['2', '1'] # TODO Should be ['2', '1']
+ books.search('title').ids.should == ['2', '1']
data.remove '1'
books.search('title').ids.should == ['2']
end
it 'handles removing with three entries' do
data.add Book.new(2, 'title', 'author')
data.add Book.new(3, 'title', 'author')
- books.search('title').ids.should == ['3', '2', '1'] # TODO Should be ['3', '2', '1']
+ books.search('title').ids.should == ['3', '2', '1']
data.remove '1'
books.search('title').ids.should == ['3', '2']
end
\ No newline at end of file