You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a search is used in a recipe, it generates this error:
#<ChefSpec::Error::SearchNotStubbed: Executing a real search is disabled. Unregistered search:
search(:my_search, "*:*")
You can stub this search with:
stub_search("my_search", "*:*").and_return(...)
Should catch this exception and create a stub_search block in the spec.
The text was updated successfully, but these errors were encountered:
When a search is used in a recipe, it generates this error:
Should catch this exception and create a
stub_search
block in the spec.The text was updated successfully, but these errors were encountered: