Method: RSpec::Core::Configuration#order_groups

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

#order_groups(&block) ⇒ Object

Sets a strategy by which to order groups.

Examples:

RSpec.configure do |config|
  config.order_groups do |groups|
    groups.reverse
  end
end

See Also:


984
985
986
987
# File 'lib/rspec/core/configuration.rb', line 984

def order_groups(&block)
  @group_ordering_block = block
  @order = "custom" unless built_in_orderer?(block)
end