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

30 commits

Author SHA1 Message Date
Jared Beck
206023b0b7 Lint: Fix RSpec/HooksBeforeExamples 2020-08-18 01:56:22 -04:00
Jared Beck
265b3d972c Remove methods deprecated in PT 9 2018-08-14 01:06:35 -04:00
Jared Beck
1d42d0d0ab Extract gem: paper_trail-association_tracking
See README and CHANGELOG for rationale.
2018-06-04 14:53:14 -04:00
Kurtis Rainbolt-Greene
4520a2741d Return value of block from PaperTrail.request
.. making it easier to use at the call site.
2018-04-22 20:38:53 -04:00
Jared Beck
e91804afb7 Rename Request#enabled_for_controller= to #enabled= 2018-03-23 21:58:45 -04:00
Alex Evanczuk
04a58ee246 Add specs to request variables branch (#1052) 2018-02-27 00:14:33 -05:00
Jared Beck
c659b1faf0 A new API for request variables 2018-02-27 00:14:33 -05:00
Jared Beck
cfbf7a647c Lint: Style/FrozenStringLiteralComment 2017-12-10 23:05:39 -05:00
Jared Beck
c2d5df8fde Lint: RSpec/BeforeAfterAll 2017-11-30 22:17:42 -05:00
Jared Beck
515f0958a6 Lint: Fix RSpec/NamedSubject 2017-10-27 12:17:04 -04:00
Jared Beck
1af1d0dab0 Lint: Fix RSpec/FilePath 2017-10-17 18:37:43 -04:00
narfanator
b5500f1003 Allow whodunnit to be a proc (#976)
* Allow whodunnit to be a proc
* Update contribution quidelines
2017-07-08 16:39:04 -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
Dorian Marié
dd1de6480c Adds thread-safe PaperTrail.whodunnit(value) { ... }
Allows to set whodunnit for the block, e.g.

PaperTrail.whodunnit("me") { Booking.past.not_charged.each(&:charge) }
2017-04-20 17:51:10 -04:00
Jared Beck
af10cd4f00 Lint: Fix RSpec/ExampleWording 2017-04-01 01:50:13 -04:00
Jared Beck
2246570dc3 Add PaperTrail.gem_version 2017-04-01 01:35:28 -04:00
Jared Beck
f7945086c5 Lint: RSpec/DescribedClass 2017-04-01 00:51:21 -04:00
Jared Beck
e185ae989f Lint: rubocop 0.48.0 (was 0.41.2) 2017-03-31 21:45:02 -04:00
Dorian Marié
addf066093
adds rutbocop-rspec and rubocop-thread_safety 2017-03-03 13:09:24 -08:00
Jared Beck
9183d0cb6e Move test/paper_trail_test.rb to rspec 2016-08-22 00:40:55 -04:00
Jared Beck
c24d0b4780 Fix whitespace 2016-03-05 17:11:08 -05:00
Jared Beck
8980f08d0e Fix Style/StringLiterals: Use double quotes 2016-03-05 17:07:32 -05:00
Jared Beck
10941c8459 Fix Style/HashSyntax 2016-02-15 22:32:40 -05:00
Jared Beck
02a634f966 rspec 3.4 (was 3.1) 2015-12-19 18:47:13 -05:00
Ben Atkins
716c3e0fb5 Use RSpec 3 for testing; Update syntax in spec suite for RSpec 3 2014-10-09 15:04:17 -04:00
Ben Atkins
5302f5ecc8 Code condensation; 'without_versioning' method now yields model instance 2014-03-12 10:09:59 -04:00
Ben Atkins
52823d2fb2 close #312; Fix RSpec 'with_versioning' class helper method 2014-03-11 16:22:22 -04:00
Ben Atkins
36a402d115 Cleaning up the specs for the RSpec helper 2013-10-29 12:07:54 -04:00
Ben Atkins
fdf85343a8 Removing ruby19 hash syntax from RSpec helper and specs to maintain Ruby18 compatibility. Changing the spec_helper to use the dummy app in the 'test' directory to avoid having two dummy apps. Adding 'rspec-rails' to the 3.0.gemfile so it can run the spec tests on Travis. 2013-08-27 17:35:36 -04:00
Ben Atkins
642c296aa3 Simplifying the RSpec helper code, adding better spec coverage for it 2013-08-27 16:34:16 -04:00