Method: RSpec::Core::World#ordered_example_groups

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

#ordered_example_groupsvoid

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Apply ordering strategy from configuration to example groups.

[View source]

52
53
54
55
# File 'lib/rspec/core/world.rb', line 52

def ordered_example_groups
  ordering_strategy = @configuration.ordering_registry.fetch(:global)
  ordering_strategy.order(@example_groups)
end