spec/lib/internals/index/files_spec.rb in picky-2.1.2 vs spec/lib/internals/index/files_spec.rb in picky-2.2.0
- old
+ new
@@ -2,13 +2,12 @@
describe Internals::Index::Files do
before(:each) do
index = stub :index, :name => :some_index
- category = stub :category, :name => :some_category
- configuration = Configuration::Index.new index, category
+ category = Internals::Indexing::Category.new :some_category, index
- @files = described_class.new :some_name, configuration
+ @files = described_class.new :some_name, category
@prepared = @files.prepared
@index = @files.index
@weights = @files.weights
\ No newline at end of file