Method: Cornucopia::Util::Configuration.order_seed=
- Defined in:
- lib/cornucopia/util/configuration.rb
.order_seed=(value) ⇒ Object
order_seed is the seed value used to set the order that randomly ordered tests are run in. This is provided as a convenience method. I think it is easier to set this in rails_helper than it is to set it on the command line. This also provides a uniform method to do it.
434 435 436 437 438 439 440 441 442 443 444 445 446 |
# File 'lib/cornucopia/util/configuration.rb', line 434 def order_seed=(value) Cornucopia::Util::Configuration.instance.configurations.order_seed = value if value if RSpec.configuration.respond_to?(:seed) RSpec.configuration.seed = value else # :nocov: RSpec.configuration.ordering_manager.seed = value # :nocov: end end end |