Sha256: a000554232b7f04ec6ac7e371f20db32d44addca0733c2efb1538213f0da367a
Contents?: true
Size: 444 Bytes
Versions: 3
Compression:
Stored size: 444 Bytes
Contents
Generative::ORDERING = ->(examples) { number_of_examples = ENV.fetch('GENERATIVE_COUNT', '1').to_i examples * number_of_examples } RSpec.configure do |rspec| case RSpec::Core::Version::STRING when /^2/ rspec.order_examples(&Generative::ORDERING) if ENV['GENERATIVE_COUNT'] when /^3/ rspec.register_ordering(:generative, &Generative::ORDERING) else puts "Generative was unable to determine the RSpec version." end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
generative-0.2.0.pre2 | lib/generative/ordering.rb |
generative-0.2.0.pre1 | lib/generative/ordering.rb |
generative-0.1.0 | lib/generative/ordering.rb |