public
Description: A replacement for ActiveRecord query_cache that a adds a Memcache layer for persistence of the query's cache
Homepage: http://github.com/ferblape/query_memcached/tree
Clone URL: git://github.com/ferblape/query_memcached.git
query_memcached / RUNNING_TESTS
100644 18 lines (11 sloc) 0.527 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
= Running tests
 
For testing this plugin I decided to adapt a the query cache tests' from ActiveRecord.
 
First of all you have to know that there is a Rails 2.1 application in `test/testing_app`.
 
So you need a database as indicated in `config/database.yml`:
 
  user: root
  adapter: mysql
  database: 'activerecord_unittest'
  encoding: utf8
  
Then, load the schema from `db/schema.rb`, and launch a memcache server in standar port 11211.
 
Now, you can go to the plugin root directory and perform the test task:
 
  rake test