Sha256: a120a1c1042f15ed0079e39bfcdfbd61d27b1121cd2203374ab5541e03918102

Contents?: true

Size: 511 Bytes

Versions: 2

Compression:

Stored size: 511 Bytes

Contents

require "rspec/parallel/configuration"

module RSpec
  module Parallel
    # @return [RSpec::Parallel::Configuration]
    def self.configuration
      @configuration ||= RSpec::Parallel::Configuration.new
    end

    # Yields the global configuration to a block.
    #
    # @yield [RSpec::Parallel::Configuration]
    # @example
    #   RSpec::Parallel.configure do |config|
    #     config.bind = "0.0.0.0:8000"
    #   end
    def self.configure
      yield configuration if block_given?
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
parallel-rspec-0.1.1 lib/rspec/parallel.rb
parallel-rspec-0.1.0 lib/rspec/parallel.rb