Sha256: 39c2ae6eab985640867bafe6f948b702c82ed1a08b5f1e59b17dbc6f27055391

Contents?: true

Size: 297 Bytes

Versions: 1

Compression:

Stored size: 297 Bytes

Contents

module RSpec
  module Core
    module Extensions
      module Ordered
        def ordered
          if RSpec.configuration.randomize?
            srand RSpec.configuration.seed
            sort_by { rand size }
          else
            self
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rspec-core-2.8.0.rc1 lib/rspec/core/extensions/ordered.rb