Sha256: e44f7fdb0c8aaa07f09d0a0630704dd6b0a5f7e6191aa7165323910f1954e926

Contents?: true

Size: 607 Bytes

Versions: 2

Compression:

Stored size: 607 Bytes

Contents

# frozen_string_literal: true

require 'rspeckled/plugins/extensions/ruby/deferred_garbage_collection'

::RSpec.configure do |config|
  config.before(:all) do
    config.rspeckled_logger.debug("Before All   - Start - #{__FILE__}")

    ::Rspeckled::Ruby::DeferredGarbageCollection.start

    config.rspeckled_logger.debug("Before All   - End   - #{__FILE__}")
  end

  config.after(:all) do
    config.rspeckled_logger.debug("After  All   - Start - #{__FILE__}")

    ::Rspeckled::Ruby::DeferredGarbageCollection.reconsider

    config.rspeckled_logger.debug("After  All   - End   - #{__FILE__}")
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspeckled-2.1.1 lib/rspeckled/plugins/hooks/garbage_collection.rb
rspeckled-2.1.0 lib/rspeckled/plugins/hooks/garbage_collection.rb