Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically generate search stubs #11

Open
AMeng opened this issue Jun 6, 2014 · 0 comments
Open

Automatically generate search stubs #11

AMeng opened this issue Jun 6, 2014 · 0 comments

Comments

@AMeng
Copy link
Owner

AMeng commented Jun 6, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant