Permalink
Browse files

Update README about usage

  • Loading branch information...
sobrinho committed Aug 1, 2011
1 parent cf7370a commit 846332f052edbca1209ad919ff1ee0937b5b5f3a
Showing with 15 additions and 2 deletions.
  1. +15 −2 Readme.markdown
View
@@ -10,11 +10,24 @@ This is a big performance win, particularly when creating objects in the setup f
gem install machinist-caching
-## Require
+## Usage
- require 'machinist-caching'
require 'machinist/caching/active_record'
+ # Test::Unit
+ class Test::Unit::TestCase
+ def setup
+ Machinist::Caching::Shop.instance.reset!
+ end
+ end
+
+ # RSpec
+ RSpec.configure do |config|
+ config.before do
+ Machinist::Caching::Shop.instance.reset!
+ end
+ end
+
## Problem Scenario
Imagine that you have countries, states and cities model. And you have this blueprints:

0 comments on commit 846332f

Please sign in to comment.