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

Make DSL work with config.disable_monkeypatching! #166

Merged
merged 2 commits into from
Oct 8, 2014

Conversation

mikz
Copy link
Contributor

@mikz mikz commented Oct 8, 2014

RSpec introduced configuration for disabling monkey patching main.

Unfortunately RspecApiDocumentation pollutes main scope by defining resource and depending on describe.

This patch moves the DSL to a module, extends ExampleGroup and leaves the rest on RSpec.

Also it requires all the dependencies by requiring rspec_api_documentation on the top.

oestrich added a commit that referenced this pull request Oct 8, 2014
Make DSL work with config.disable_monkeypatching!
@oestrich oestrich merged commit 0dc86f8 into zipmark:master Oct 8, 2014
@oestrich
Copy link
Contributor

oestrich commented Oct 8, 2014

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants