Module: RspecPaperTrailCucumberSupport

Defined in:
lib/rspec/paper_trail/features_support.rb

Instance Method Summary collapse

Instance Method Details

#with_versioningObject

:call-seq: with_versioning

enable versioning for specific blocks



8
9
10
11
12
13
14
15
16
# File 'lib/rspec/paper_trail/features_support.rb', line 8

def with_versioning
  was_enabled = ::PaperTrail.enabled?
  ::PaperTrail.enabled = true
  begin
    yield
  ensure
    ::PaperTrail.enabled = was_enabled
  end
end