Browse files

Fix para comprobar campo de texto sin value (David Brenes)

  • Loading branch information...
1 parent 8370ba1 commit a1be8d6056a1162953d9cba219a6eaffc2558c79 @nando committed Dec 23, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mundo_pepino/es_ES/definitions.rb
@@ -268,7 +268,7 @@
#Entonces /^(#{_veo_o_no_}) el campo (.+) con el (?:valor|texto)? (.+)$/ do |should, campo, valor|
Entonces /^(#{_veo_o_no_}) el campo (.+) con(?: el (?:valor|texto))? ['"]?(.+?)["']$/i do |should, campo, valor|
- field_labeled(campo.to_unquoted).value.send shouldify(should), match(/#{valor.to_unquoted}/)
+ (field_labeled(campo.to_unquoted).value||'').send shouldify(should), match(/#{valor.to_unquoted}/)
Entonces /^(#{_veo_o_no_}) marcad[ao] (?:la casilla|el checkbox)? ?(.+)$/i do |should, campo|

0 comments on commit a1be8d6

Please sign in to comment.