Remove unneeded warning
This commit is contained in:
parent
4c4e65629c
commit
0a314baa45
|
@ -17,11 +17,7 @@ class Capybara::RackTest::Node < Capybara::Driver::Node
|
|||
end
|
||||
|
||||
def set(value)
|
||||
return if disabled?
|
||||
if readonly?
|
||||
warn "Attempt to set readonly element with value: #{value} \n * This will raise an exception in a future version of Capybara"
|
||||
return
|
||||
end
|
||||
return if disabled? || readonly?
|
||||
|
||||
if (Array === value) && !multiple?
|
||||
raise TypeError.new "Value cannot be an Array when 'multiple' attribute is not present. Not a #{value.class}"
|
||||
|
|
Loading…
Reference in New Issue