spec/lib/internals/indexed/bundle/redis_spec.rb in picky-2.1.2 vs spec/lib/internals/indexed/bundle/redis_spec.rb in picky-2.2.0
- old
+ new
@@ -5,15 +5,14 @@
before(:each) do
@backend = stub :backend
Internals::Index::Redis.stub! :new => @backend
- @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 'ids' do
it 'delegates to the backend' do
@backend.should_receive(:ids).once.with :some_sym
\ No newline at end of file