Sha256: a12b2a3a44b45352290b86d3a40b76c5d84edf28dd2c5f8f16cfb1935a36e750

Contents?: true

Size: 541 Bytes

Versions: 3

Compression:

Stored size: 541 Bytes

Contents

require 'rspec-search-and-destroy/version'

require 'rspec-search-and-destroy/order_formatter'
require 'rspec-search-and-destroy/location_source'
require 'rspec-search-and-destroy/reorder_and_filter'

module RSpecSearchAndDestroy
  def self.configure(config)
    config.add_formatter(OrderFormatter)

    source = LocationSource.new
    if source.enabled?
      ordering = ReorderAndFilter.new(source)

      config.files_or_directories_to_run = source.example_locations_to_run
      config.order_examples(&ordering.block)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rspec-search-and-destroy-0.0.4 lib/rspec-search-and-destroy.rb
rspec-search-and-destroy-0.0.3 lib/rspec-sad.rb
rspec-search-and-destroy-0.0.2 lib/rspec-sad.rb