module RSpecSearchAndDestroy

Constants

VERSION

Public Class Methods

configure(config) click to toggle source
# File lib/rspec-search-and-destroy.rb, line 8
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