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

Document how to set up Rspec for testing #57

Open
monfresh opened this issue Sep 10, 2013 · 2 comments
Open

Document how to set up Rspec for testing #57

monfresh opened this issue Sep 10, 2013 · 2 comments

Comments

@monfresh
Copy link

Please add documentation detailing what's needed to be able to run tests with Garner. Thanks!

@monfresh
Copy link
Author

I think I figured it out. Tests are passing now after adding these 2 lines to my config.before(:each) block in spec_helper.rb:

Garner.config.reset!
Garner.config.cache.clear

Is this all that's needed? If so, I can submit a documentation pull request if you want.

@fancyremarker
Copy link
Contributor

@monfresh: We actually clear the entire underlying cache (in our cache Rails.cache.clear), but your approach is more correct for the specific case of Garner. Yes, please submit a pull request and I'll merge. Thanks!

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

3 participants