Sha256: aa7963e911628ff314662fb4e47801b45fa78fd2b75f94853c56515185c7c888
Contents?: true
Size: 389 Bytes
Versions: 2
Compression:
Stored size: 389 Bytes
Contents
require 'rspec' 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rspec-paper_trail-0.0.8 | lib/rspec/paper_trail/extensions.rb |
rspec-paper_trail-0.0.7 | lib/rspec/paper_trail/extensions.rb |