Rename Field#value to Field#escaped_value
This commit is contained in:
parent
e4cbf943a9
commit
8c73680e64
@ -56,7 +56,7 @@ module Webrat
|
|||||||
|
|
||||||
def to_param
|
def to_param
|
||||||
return nil if disabled?
|
return nil if disabled?
|
||||||
param_parser.parse_query_parameters("#{name}=#{value}")
|
param_parser.parse_query_parameters("#{name}=#{escaped_value}")
|
||||||
end
|
end
|
||||||
|
|
||||||
def set(value)
|
def set(value)
|
||||||
@ -77,7 +77,7 @@ module Webrat
|
|||||||
@element["name"]
|
@element["name"]
|
||||||
end
|
end
|
||||||
|
|
||||||
def value
|
def escaped_value
|
||||||
CGI.escape(@value.to_s)
|
CGI.escape(@value.to_s)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user