Displaying 1 result from an estimated 1 matches for "database_select".
2012 Jun 19
0
validation method breaks cucumber scenario
...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_generate_database.blank? and !snapshot_id.blank?
errors[:Da...