Method: RSpec::Core::Configuration#order_examples

Defined in:
lib/rspec/core/configuration.rb

#order_examples(&block) ⇒ Object

Sets a strategy by which to order examples.

Examples:

RSpec.configure do |config|
  config.order_examples do |examples|
    examples.reverse
  end
end

See Also:



961
962
963
964
# File 'lib/rspec/core/configuration.rb', line 961

def order_examples(&block)
  @example_ordering_block = block
  @order = "custom" unless built_in_orderer?(block)
end