Commit Graph

12 Commits

Author SHA1 Message Date
Jared Beck 24f3fbcd8f PT-AT is now responsible for testing itself
See historical overview in README
2019-08-06 02:45:06 -04:00
Enrico Brunetta 8b6876ace0 add 'limit' option to has_paper_trail to override global PaperTrail.config.version_limit setting (#1194)
* add 'limit' option to has_paper_trail allowing users to override the PaperTrail.config.version_limit value on a per-model basis. This feature requires the item_subtype column in the versions table.

* Suggestions to be squashed into PR 1194

* Squash: trim trailing whitespace

[ci skip]

* Squash: use item_subtype_column_present?
2019-03-22 15:10:56 -04:00
Jared Beck 025ceef943 Ask for help with association tracking 2018-03-24 00:26:28 -04:00
Jared Beck cfbf7a647c Lint: Style/FrozenStringLiteralComment 2017-12-10 23:05:39 -05:00
Jared Beck f206882bfb Remove warning about track_associations default
Failing to set PaperTrail.config.track_associations will no longer produce
a warning. The default (false) will remain the same.
2017-12-10 22:42:16 -05:00
Jared Beck 7295f65a3c Organizing model tests
model_spec is far too long, let's break it up into specs for individual
models in the dummy app.

Extract spec/models/legacy_widget_spec.rb

Extract spec/models/on/empty_array_spec.rb

Extract spec/models/on/create_spec.rb

Extract spec/models/on/update_spec.rb

Extract spec/models/on/destroy_spec.rb

Move an example to config_spec.rb

Extract spec/models/translation_spec.rb

Extract spec/models/article_spec.rb

Move examples to document_spec.rb
2017-07-05 00:15:15 -04:00
Jared Beck 38fa23873c Merge rails_helper into spec_helper
The reason some projects have both is so that some spec files can be
run in isolation, without the rails stuff. In practice, I don't find
myself ever doing this. So, the complexity of two files is unnecessary.
2017-05-30 00:59:55 -04:00
Jared Beck c4148de9d0 Configure RSpec
Enable various standard configuration.
2017-05-21 02:04:28 -04:00
Jared Beck 0b016be756 Lint: Fix RSpec/NotToNot 2017-04-01 01:59:47 -04:00
Jared Beck e36ba138a3 Do not track associations by default
[Fixes #740]
2016-04-26 22:06:22 -04:00
Jared Beck 68ae9f6108 Make PaperTrail.enabled= affect all threads
Fixes https://github.com/airblade/paper_trail/issues/635
2016-03-03 18:19:50 -05:00
Jared Beck 9c6c62d77e Reduce duplication in Config#enabled 2015-12-13 00:37:26 -05:00