Commit Graph

17 Commits

Author SHA1 Message Date
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