Combing definitions of #disabled?
This commit is contained in:
parent
d304564283
commit
8c5216e3ae
|
@ -47,7 +47,7 @@ module Webrat
|
|||
end
|
||||
|
||||
def disabled?
|
||||
!@element["disabled"].nil? && @element["disabled"] != 'false'
|
||||
@element.attributes.has_key?("disabled") && @element["disabled"] != 'false'
|
||||
end
|
||||
|
||||
def raise_error_if_disabled
|
||||
|
@ -60,10 +60,6 @@ module Webrat
|
|||
param_parser.parse_query_parameters("#{name}=#{value}")
|
||||
end
|
||||
|
||||
def disabled?
|
||||
@element.attributes.has_key? "disabled"
|
||||
end
|
||||
|
||||
def set(value)
|
||||
@value = value
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue