Remove unneeded warning

This commit is contained in:
Thomas Walpole 2017-11-13 10:43:35 -08:00
parent 4c4e65629c
commit 0a314baa45
1 changed files with 1 additions and 5 deletions

View File

@ -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}"