Sha256: b6cff8877b922bcbd86b1cb7ac2793b474c91f8a575469e90f987929d7047336

Contents?: true

Size: 345 Bytes

Versions: 6

Compression:

Stored size: 345 Bytes

Contents

require 'ostruct'

RSpec.configure do | config |
  config.before(:each, job: true) do
    Thread.current[:pact_broker_thread_data] = OpenStruct.new
    Thread.current[:pact_broker_thread_data].database_connector = -> (&block) { block.call }
  end

  config.after(:each, job: true) do
    Thread.current[:pact_broker_thread_data] = nil
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pact_broker-2.34.0 spec/support/jobs.rb
pact_broker-2.33.0 spec/support/jobs.rb
pact_broker-2.32.0 spec/support/jobs.rb
pact_broker-2.31.0 spec/support/jobs.rb
pact_broker-2.30.0 spec/support/jobs.rb
pact_broker-2.29.0 spec/support/jobs.rb