Sha256: a9b73a9e5cc3e539fae3488326daf3e777f0d11bddefd767464ee667340584f5
Contents?: true
Size: 995 Bytes
Versions: 2
Compression:
Stored size: 995 Bytes
Contents
require 'spec_helper' describe Internals::Indexed::Bundle::Redis do 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 @similarity = stub :similarity @bundle = described_class.new :some_name, @configuration, @similarity end describe 'ids' do it 'delegates to the backend' do @backend.should_receive(:ids).once.with :some_sym @bundle.ids :some_sym end end describe 'weight' do it 'delegates to the backend' do @backend.should_receive(:weight).once.with :some_sym @bundle.weight :some_sym end end describe '[]' do it 'delegates to the backend' do @backend.should_receive(:setting).once.with :some_sym @bundle[:some_sym] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
picky-2.1.2 | spec/lib/internals/indexed/bundle/redis_spec.rb |
picky-2.1.1 | spec/lib/internals/indexed/bundle/redis_spec.rb |