Sha256: b2fbf624fded4cad8a680f54af0f3ceea73e6e5474b916485839dde3857e09c6
Contents?: true
Size: 719 Bytes
Versions: 4
Compression:
Stored size: 719 Bytes
Contents
require 'spec_helper' describe Indexing::Index do context "with categories" do before(:each) do @source = stub :some_source @categories = stub :categories @index = Indexing::Index.new :some_name, @source @index.add_category :some_category_name1 @index.add_category :some_category_name2 @index.stub! :categories => @categories end describe "generate_caches" do it "delegates to each category" do @categories.should_receive(:generate_caches).once.with @index.generate_caches end end end context "no categories" do it "works" do Indexing::Index.new :some_name, @source end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
picky-0.12.3 | spec/lib/indexing/index_spec.rb |
picky-0.12.2 | spec/lib/indexing/index_spec.rb |
picky-0.12.1 | spec/lib/indexing/index_spec.rb |
picky-0.12.0 | spec/lib/indexing/index_spec.rb |