spec/lib/internals/indexed/bundle/memory_spec.rb in picky-2.1.2 vs spec/lib/internals/indexed/bundle/memory_spec.rb in picky-2.2.0

- old
+ new

@@ -1,16 +1,15 @@ require 'spec_helper' describe Internals::Indexed::Bundle::Memory do before(:each) do - @category = stub :category, :name => :some_category @index = stub :index, :name => :some_index - @configuration = Configuration::Index.new @index, @category + @category = Internals::Indexed::Category.new :some_category, @index @similarity = stub :similarity - @bundle = described_class.new :some_name, @configuration, @similarity + @bundle = described_class.new :some_name, @category, @similarity end describe 'to_s' do it 'does something' do @bundle.to_s.should == <<-TO_S @@ -159,14 +158,13 @@ end end describe 'initialization' do before(:each) do - @category = stub :category, :name => :some_category @index = stub :index, :name => :some_index - @configuration = Configuration::Index.new @index, @category + @category = Internals::Indexed::Category.new :some_category, @index - @bundle = described_class.new :some_name, @configuration, :similarity + @bundle = described_class.new :some_name, @category, :similarity end it 'should initialize the index correctly' do @bundle.index.should == {} end it 'should initialize the weights index correctly' do \ No newline at end of file