Main > Programming > Libraries >

Rails Page Cache Test Plugin 0.2

Rails Page Cache Test Plugin 0.2

Sponsored Links

Rails Page Cache Test Plugin 0.2 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.010 MB
Platform: Any Platform
License: MIT/X Consortium License
Price:
Downloads: 1106
Date added: 2006-10-18
Publisher: canatella

Rails Page Cache Test Plugin 0.2 description

Rails Page Cache Test Plugin adds two assertions to the Test::Units::TestCase class of Ruby on Rails to check the caching and expiring of pages in integration tests.
Installation:
Unpack into the vendor/plugin and that should be it.
Usage:
First create an integration test. Then, to test caching of the "/pages/about" and "/pages/contact" pages, add a method like this:
def test_caching
assert_cache("/pages/about", "/pages/contact")
end
The assert_cache method will
- first make sure that the urls are not cached,
- execute a get on each request,
- assert that the corresponding cache files have been created.
You can also give a block to the assert_cache method. Instead of executing a get on each url, it will yield the urls. For example:
def test_caching
assert_cache("/pages/about",
"/pages/contact") do |url_about, url_contact|
post url_about
post url_contact
end
end
You will also certainly want (and thats really the most interesting part) to check if your cached pages expires when the user is doing some action. For that, here is the assert_expire method:
def test_expiring
assert_expire("/news/list", "/news/show/1") do |*urls|
post "/news/delete/1"
end
end
Here the assert_expire method will
- check that the urls are cached,
- execute the post request,
- and assert that the urls are no more cached.
This is great for testing your cache sweepers logic.
Enhancements:
- This release adds a test for action and fragment caching.
- The plugin does not look at the filesystem anymore to see if page are cached or not.
- It hijacks the ActionController::Base page caching methods to store which pages are cached and expired, and uses that information for the assertions.

Rails Page Cache Test Plugin 0.2 Screenshot

Advertisements

Rails Page Cache Test Plugin 0.2 Keywords

Bookmark Rails Page Cache Test Plugin 0.2

Hyperlink code:
Link for forum:

Rails Page Cache Test Plugin 0.2 Copyright

WareSeeker periodically updates pricing and software information of Rails Page Cache Test Plugin 0.2 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Rails Page Cache Test Plugin 0.2 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Rails History Plugin is a Ruby on Rails plugin that stores user actions (i.e. URLs that the user has recently visited). Free Download
CDcover XMMS Plugin displays a graphic dependent on the currently played song. Free Download
Rails Real-Time Form Validation Plug-In uses AJAX to validate form data against a model in real-time. Free Download
Ruby on Rails SubList Plugin makes it easy to have dynamic lists of related models on a single editing page. Free Download
Xfce 4 Taskbar Plugin is a taskbar plugin for the panel. Free Download
hReview WordPress Plugin is a plugin that allows for the easy entry of hReview microformat content for reviews in WordPress. Free Download
Rails Live CD is based on PCLinuxOS which is a great Linux distribution for creating LiveCDs. Free Download
XFCE Radio Plugin is an XFCE panel plugin which allows you to control your v4l radio device from within the panel. Free Download