Skip to content

Commit

Permalink
Use DEFAULT_ORDERING constant.
Browse files Browse the repository at this point in the history
  • Loading branch information
myronmarston committed Jan 5, 2012
1 parent a9476b0 commit 39a1f84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rspec/core/configuration.rb
Expand Up @@ -746,7 +746,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.
Expand All @@ -769,7 +769,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.
Expand Down

0 comments on commit 39a1f84

Please sign in to comment.