Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use DEFAULT_ORDERING constant.

  • Loading branch information...
commit 09273dd25bd7f295ab278feeb458e9ed50acb4c2 1 parent 95538f1
Myron Marston myronmarston authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rspec/core/configuration.rb
4 lib/rspec/core/configuration.rb
View
@@ -828,7 +828,7 @@ def order_examples(&block)
# @private
def example_ordering_block
- @example_ordering_block ||= lambda { |examples| examples }
+ @example_ordering_block ||= DEFAULT_ORDERING
end
# Sets a strategy by which to order groups.
@@ -851,7 +851,7 @@ def order_groups(&block)
# @private
def group_ordering_block
- @group_ordering_block ||= lambda { |groups| groups }
+ @group_ordering_block ||= DEFAULT_ORDERING
end
# Sets a strategy by which to order groups and examples.
Please sign in to comment.
Something went wrong with that request. Please try again.