Combing definitions of #disabled?
This commit is contained in:
parent
d304564283
commit
8c5216e3ae
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user