Text treated as regexp for buttons

This commit is contained in:
Ross Kaffenberger 2008-12-17 18:30:47 -05:00
parent a5e6af2fe7
commit 567f5ada0e

View File

@ -191,7 +191,7 @@ module Webrat
if text_or_regexp.is_a?(Regexp)
"evalregex:#{text_or_regexp.inspect}"
else
text_or_regexp
"evalregex:/#{text_or_regexp}/"
end
end