Sha256: 8bf4d42361ee7c96eb7801ac80fc6ed9ffb5ac165033763ef867bae34d7c781a

Contents?: true

Size: 389 Bytes

Versions: 5

Compression:

Stored size: 389 Bytes

Contents

module PaperTrail
  module RSpec
    module Extensions
      # :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
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
paper_trail-3.0.0 lib/paper_trail/frameworks/rspec/extensions.rb
paper_trail-3.0.0.rc2 lib/paper_trail/frameworks/rspec/extensions.rb
paper_trail-3.0.0.rc1 lib/paper_trail/frameworks/rspec/extensions.rb
paper_trail_without_deprecated-3.0.0.beta1 lib/paper_trail/frameworks/rspec/extensions.rb
paper_trail-3.0.0.beta1 lib/paper_trail/frameworks/rspec/extensions.rb