spec/support/concerns/searchable.rb in lcms-engine-0.1.4 vs spec/support/concerns/searchable.rb in lcms-engine-0.2.0
- old
+ new
@@ -7,9 +7,11 @@
let(:object) { create factory }
let(:repo) { double Lcms::Engine::Search::Repository }
before do
allow(Lcms::Engine::Search::Repository).to receive(:new).and_return(repo)
+ allow(repo).to receive(:index_exists?).and_return(true)
+ allow(repo).to receive(:save)
allow(described_class).to receive(:search_model).and_return(Lcms::Engine::Search::Document)
allow(Lcms::Engine::Search::Document).to receive(:build_from).and_return(doc)
allow(doc).to receive(:search)
end