Make sure Field#escaped_value also works when @value is an Array on 1.9
This commit is contained in:
parent
9134b09b87
commit
48a4ec905e
|
@ -134,7 +134,7 @@ module Webrat
|
||||||
end
|
end
|
||||||
|
|
||||||
def escaped_value
|
def escaped_value
|
||||||
CGI.escape(@value.to_s)
|
CGI.escape([*@value].first.to_s)
|
||||||
end
|
end
|
||||||
|
|
||||||
def labels
|
def labels
|
||||||
|
|
Loading…
Reference in New Issue