lib/relevance/tarantula/form_submission.rb in relevance-tarantula-0.2.0 vs lib/relevance/tarantula/form_submission.rb in relevance-tarantula-0.2.1

- old
+ new

@@ -45,15 +45,16 @@ end end def random_data(input) case input['name'] - when /amount/ : random_int - when /_id$/ : random_whole_number - when /uploaded_data/ : nil - when /^_method$/ : input['value'] - when nil : input['value'] - else random_int + when /amount/ then random_int + when /_id$/ then random_whole_number + when /uploaded_data/ then nil + when /^_method$/ then input['value'] + when nil then input['value'] + else + random_int end end def big_number 10000 # arbitrary