-
Notifications
You must be signed in to change notification settings - Fork 51
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
Caching #42
Conversation
render_hash | ||
end | ||
|
||
test "cache shoud use #cache_key as default" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: should
instead of shoud
.
assert_nothing_raised { render_hash } | ||
end | ||
|
||
test "cache should be applied if no cache key is given" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be "should not be applied" instead of "should be applied"? The next line is @cache.should_not_receive(:fetch)
.
Add response caching