Displaying 1 result from an estimated 1 matches for "auto_generate_database".
2012 Jun 19
0
validation method breaks cucumber scenario
...ou select two or more it
should prompt an error. If the user chooses to, only one field should
be allowed to be submitted.
I tried the following but it seems to be breaking my cucumber scenario.
Only the first if statement works. The rest are breaking the scenario.
if !database.blank? and !auto_generate_database.blank? and
!snapshot_id.blank?
errors[:Database_Selection] = msg
elsif !database.blank? and !auto_generate_database.blank?
errors[:Database_Selection] = msg
elsif !snapshot_id.blank? and !database.blank?
errors[:Database_Selection] = msg
elsif !auto_gene...