529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
|
# File 'lib/remi/cucumber/business_rules.rb', line 529
def generate
psuedorand = Random.new(4985674985672348954987589429)
generate_files_with_pattern
@files.map! do |file|
date_method = @delivered.keys.first
if date_method == :since
file[:attributes][:createdtime] = @delivered[:since] + 10 + psuedorand.rand * 100
elsif date_method == :before
file[:attributes][:createdtime] = @delivered[:since] - 10 - psuedorand.rand * 100
else
file[:attributes][:createdtime] = Time.now - 10 - psuedorand.rand * 100
end
file
end
end
|