This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit a606f513252b8b5588f11070a647ce68823bd94c
tree 98d5f9b0ff1914624e96de90489caefd320c4b0d
parent 0457bcee5de034d36b928b187a1bf4aa175e0b68
tree 98d5f9b0ff1914624e96de90489caefd320c4b0d
parent 0457bcee5de034d36b928b187a1bf4aa175e0b68
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | Sat Sep 06 06:47:01 -0700 2008 | |
| |
README.markdown | ||
| |
Rakefile | Sat Sep 06 06:38:04 -0700 2008 | |
| |
init.rb | ||
| |
lib/ | ||
| |
test/ |
README.markdown
Cache Test
http://github.com/ferblape/cache_test
A plugin for testing generation and expiration of action cache and fragment cached. Based on cache test plugin
Example of usage
You can use all the new asserts in functional tests, in this way:
assert_cache_fragment({:fragment => 'total_posts'}) do
get :index, :user_id => users(:first)
assert_response :success
end
List of asserts
Testing action cache
Generation
assert_cache_actionassert_cache_actionsassert_not_cache_actionassert_not_cache_actions
Expiration
assert_expire_cache_actionassert_expire_cache_actionsassert_not_expire_cache_actionassert_not_expire_cache_actions
Testing fragment cache
Generation
assert_cache_fragmentassert_cache_fragmentsassert_not_cache_fragmentassert_not_cache_fragments
Expiration
assert_expire_cache_fragmentassert_expire_cache_fragmentsassert_not_expire_cache_fragmentassert_not_expire_cache_fragments
About
This plugin is inspired by cache_test, a great plugin that allowed you to test cache in Rails 1.x.
It was so useful for me that I decided to upgrade it to Rails 2.x and add some tests.
The test suite was extracted from the test suit of shoulda, another great plugin.
Copyright (c) 2008 Fernando Blat, released under the MIT license








