Sha256: 3e38021b329c48c13026457baa2d75f0894c3bb7594a8e68064bd9f446206751

Contents?: true

Size: 462 Bytes

Versions: 17

Compression:

Stored size: 462 Bytes

Contents

# Random causes problems that can lock up a browser (see README)
class ::RSpec::Core::Ordering::Random
  HIDE_RANDOM_WARNINGS = false

  def initialize(configuration)
    `console.warn("Random order is not currently supported by opal-rspec, using default order.")` unless HIDE_RANDOM_WARNINGS
  end

  # Identity is usually the default, so borrowing its implementation, this forces 'accidental' random usage down that path
  def order(items)
    items
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
opal-rspec-1.0.0 lib-opal/opal/rspec/fixes/rspec/core/ordering/random.rb
opal-rspec-1.0.0.alpha1 lib-opal/opal/rspec/fixes/rspec/core/ordering/random.rb
opal-rspec-0.8.0 lib-opal/opal/rspec/fixes/rspec/core/ordering/random.rb
opal-rspec-0.8.0.alpha3 lib-opal/opal/rspec/fixes/rspec/core/ordering/random.rb
opal-rspec-0.8.0.alpha2 lib-opal/opal/rspec/fixes/rspec/core/ordering/random.rb
opal-rspec-0.8.0.alpha1 lib-opal/opal/rspec/fixes/rspec/core/ordering/random.rb
opal-rspec-0.7.1 lib-opal/opal/rspec/fixes/rspec/core/ordering/random.rb
opal-rspec-0.7.0 lib-opal/opal/rspec/fixes/rspec/core/ordering/random.rb
opal-rspec-0.6.2 opal/opal/rspec/fixes/rspec/core/ordering/random.rb
opal-rspec-0.7.0.rc.2 lib-opal/opal/rspec/fixes/rspec/core/ordering/random.rb
opal-rspec-0.7.0.rc.1 lib-opal/opal/rspec/fixes/rspec/core/ordering/random.rb
opal-rspec-0.6.1 opal/opal/rspec/fixes/rspec/core/ordering/random.rb
opal-rspec-0.6.0 opal/opal/rspec/fixes/rspec/core/ordering/random.rb
opal-rspec-0.6.0.beta1 opal/opal/rspec/fixes/rspec/core/ordering/random.rb
opal-connect-rspec-0.5.0 opal/opal/rspec/fixes/rspec/core/ordering/random.rb
opal-rspec-0.5.0 opal/opal/rspec/fixes/rspec/core/ordering/random.rb
opal-rspec-0.5.0.beta3 opal/opal/rspec/fixes/rspec/core/ordering/random.rb