adding testing papertrail section to Readme [skip ci]

This commit is contained in:
Russell Osborne 2014-03-16 11:24:09 -04:00
parent 7d16113a2a
commit 4fe79ff674
1 changed files with 12 additions and 0 deletions

View File

@ -1018,6 +1018,18 @@ require 'rspec/rails'
require 'paper_trail/frameworks/rspec'
```
## Testing Paper Trail
Paper Trail has facilities to test aganist Postgres, Mysql and SQLite. To switch between DB engines you will need to export the DB Variable for the engine you wish to test aganist.
Though be aware we do not have the abilty to create the db's (except sqlite) for you. You can look at .travis.yml before_script for an example of how to create the db's needed.
```
export DB=postgres
export DB=mysql
export DB=sqlite # this is default
```
## Articles
[Using PaperTrail to track stack traces](http://rubyrailsexpert.com/?p=36), T James Corcoran's blog, 1st October 2013.