better randomization
This commit is contained in:
parent
3fe66c66c5
commit
4ae9815471
@ -17,7 +17,6 @@ module Jasmine
|
|||||||
:do_list => false,
|
:do_list => false,
|
||||||
:full_run => true,
|
:full_run => true,
|
||||||
:enable_cache => true,
|
:enable_cache => true,
|
||||||
:seed => rand(10000),
|
|
||||||
:files => []
|
:files => []
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -33,6 +32,8 @@ module Jasmine
|
|||||||
|
|
||||||
def initialize(opts = {})
|
def initialize(opts = {})
|
||||||
@options = DEFAULT_OPTIONS.dup
|
@options = DEFAULT_OPTIONS.dup
|
||||||
|
srand
|
||||||
|
@options[:seed] = rand(10000)
|
||||||
read_defaults_files
|
read_defaults_files
|
||||||
opts.each { |k, v| @options[k] = v if v }
|
opts.each { |k, v| @options[k] = v if v }
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user