1
0
Fork 0
mirror of https://github.com/paper-trail-gem/paper_trail.git synced 2022-11-09 11:33:19 -05:00

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

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.