Sha256: beb4f692bd9376abc80263f23fa7e0508c31437f7fc2757a6ae051f39cf017ab

Contents?: true

Size: 398 Bytes

Versions: 1

Compression:

Stored size: 398 Bytes

Contents

if defined? World
  module RspecPaperTrailCucumberSupport
    # :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
  World(RspecPaperTrailCucumberSupport)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rspec-paper_trail-0.0.10 lib/rspec/paper_trail/features_support.rb