
Webrat 0.5: Cannot fillin multi-line value to textarea
Reported by Fergus | August 15th, 2009 @ 02:31 AM
The Webrat::Field#escaped_value only returns the first line. I have to use the following to workaround:
module Webrat
class TextareaField < Field #:nodoc:
protected
def escaped_value
CGI.escape(@value)
end
end end
Comments and changes to this ticket
-
Nicholas Rutherford August 25th, 2009 @ 12:07 PM
- Assigned user set to Bryan Helmkamp
While not identical I have the same issue using fill-in.
I isolated this to a LF vs CR issue with this spec, where only the \n example fails:
http://github.com/nruth/webrat/commit/3648824bf636ac26d8fab1acfb898...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Ruby Acceptance Testing for Web applications.