Sha256: 87c59c2854b4b752e8f42d5d639d7df6e834c37f92cc4c57ed531f75d5d0631d
Contents?: true
Size: 394 Bytes
Versions: 1
Compression:
Stored size: 394 Bytes
Contents
require 'rspec/core' require 'rspec/expectations' module RSpec module PaperTrailExtensions # :call-seq: # with_versioning # # enable versioning for specific blocks def with_versioning was_enabled = ::PaperTrail.enabled? ::PaperTrail.enabled = true begin yield ensure ::PaperTrail.enabled = was_enabled end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rspec-paper_trail-0.0.10 | lib/rspec/paper_trail/extensions.rb |