Module: PaperTrail::RSpec::Helpers::ClassMethods

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

Overview

Extended by the RSpec configuration in ‘frameworks/rspec.rb`

Instance Method Summary collapse

Instance Method Details

#with_versioning(&block) ⇒ Object

enable versioning for specific blocks (at class-level)



21
22
23
24
25
# File 'lib/paper_trail/frameworks/rspec/helpers.rb', line 21

def with_versioning(&block)
  context "with versioning", versioning: true do
    class_exec(&block)
  end
end