spec/functional/backends/file_spec.rb in picky-3.6.16 vs spec/functional/backends/file_spec.rb in picky-4.0.0pre1

- old
+ new

@@ -3,12 +3,10 @@ require 'spec_helper' # Describes a Picky index that uses the File backend # for data storage. # -# TODO Everything should just fail. -# describe Picky::Backends::File do class Book attr_reader :id, :title, :author def initialize id, title, author @@ -47,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