Module: SnailTrail::RSpec::Helpers::InstanceMethods

Defined in:
lib/snail_trail/frameworks/rspec/helpers.rb

Overview

Included in the RSpec configuration in ‘frameworks/rspec.rb`

Instance Method Summary collapse

Instance Method Details

#with_versioningObject

enable versioning for specific blocks (at instance-level)



9
10
11
12
13
14
15
# File 'lib/snail_trail/frameworks/rspec/helpers.rb', line 9

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