Combing definitions of #disabled?

This commit is contained in:
Bryan Helmkamp 2008-10-13 20:56:54 -04:00
parent d304564283
commit 8c5216e3ae

View File

@ -47,7 +47,7 @@ module Webrat
end end
def disabled? def disabled?
!@element["disabled"].nil? && @element["disabled"] != 'false' @element.attributes.has_key?("disabled") && @element["disabled"] != 'false'
end end
def raise_error_if_disabled def raise_error_if_disabled
@ -60,10 +60,6 @@ module Webrat
param_parser.parse_query_parameters("#{name}=#{value}") param_parser.parse_query_parameters("#{name}=#{value}")
end end
def disabled?
@element.attributes.has_key? "disabled"
end
def set(value) def set(value)
@value = value @value = value
end end