Method: RSpec::Core::Configuration#order_groups_and_examples

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

#order_groups_and_examples(&block) ⇒ Object

Sets a strategy by which to order groups and examples.

Examples:

RSpec.configure do |config|
  config.order_groups_and_examples do |groups_or_examples|
    groups_or_examples.reverse
  end
end

See Also:



1007
1008
1009
1010
# File 'lib/rspec/core/configuration.rb', line 1007

def order_groups_and_examples(&block)
  order_groups(&block)
  order_examples(&block)
end