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:
parent
7d16113a2a
commit
4fe79ff674
1 changed files with 12 additions and 0 deletions
12
README.md
12
README.md
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue