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

Defined in:
lib/mongo_trails/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/mongo_trails/frameworks/rspec/helpers.rb', line 21

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