Methods

Class Index [+]

Quicksearch

RSpec::Core::Extensions::Ordered

@private Used to extend lists of examples and groups to support ordering strategies like randomization.

Public Instance Methods

ordered() click to toggle source

@private

    # File lib/rspec/core/extensions/ordered.rb, line 10
10:         def ordered
11:           if RSpec.configuration.randomize?
12:             Kernel.srand RSpec.configuration.seed
13:             sort_by { Kernel.rand size }
14:           else
15:             self
16:           end
17:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.