summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel DeLeo <dan@opscode.com>2011-04-27 16:13:04 -0700
committerDaniel DeLeo <dan@opscode.com>2011-04-27 16:13:04 -0700
commitde24b175fe1d6b62119c717d6a3ae10205d78e03 (patch)
tree244410770b2af31ef95c30817171d9fda24090fc
parentbbb03533b588eab5d2a3cdcc72170a7f9d8bee7f (diff)
downloadchef-de24b175fe1d6b62119c717d6a3ae10205d78e03.tar.gz
fix test to expect environments to be reindexed
-rw-r--r--chef/spec/unit/solr_query_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/chef/spec/unit/solr_query_spec.rb b/chef/spec/unit/solr_query_spec.rb
index 5a95347ec0..9e46a884a0 100644
--- a/chef/spec/unit/solr_query_spec.rb
+++ b/chef/spec/unit/solr_query_spec.rb
@@ -155,6 +155,7 @@ describe Chef::SolrQuery do
it "reindexes Chef::ApiClient, Chef::Node, and Chef::Role objects, reporting the results as a hash" do
@solr.should_receive(:delete_database).with("chunky_bacon")
@solr.should_receive(:reindex_all).with(Chef::ApiClient).and_return(true)
+ @solr.should_receive(:reindex_all).with(Chef::Environment).and_return(true)
@solr.should_receive(:reindex_all).with(Chef::Node).and_return(true)
@solr.should_receive(:reindex_all).with(Chef::Role).and_return(true)
Chef::DataBag.stub!(:cdb_list).and_return([])