better randomization

This commit is contained in:
John Bintz 2011-11-28 11:52:33 -05:00
parent 3fe66c66c5
commit 4ae9815471

View File

@ -17,7 +17,6 @@ module Jasmine
:do_list => false,
:full_run => true,
:enable_cache => true,
:seed => rand(10000),
:files => []
}
@ -33,6 +32,8 @@ module Jasmine
def initialize(opts = {})
@options = DEFAULT_OPTIONS.dup
srand
@options[:seed] = rand(10000)
read_defaults_files
opts.each { |k, v| @options[k] = v if v }
end