1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Remove needless parameter[ci skip]

There is duplicated parameter about options hash.
  This commit remove them with @oveload directive from doc.
This commit is contained in:
colorbox 2018-10-31 14:24:53 +09:00
parent fe762074ce
commit 3016745553

View file

@ -187,6 +187,7 @@ module Capybara
#
# page.select 'March', from: 'Month'
#
# @overload select(value = nil, from: nil, **options)
# @macro waiting_behavior
#
# @param value [String] Which option to select
@ -211,11 +212,13 @@ module Capybara
#
# page.unselect 'March', from: 'Month'
#
# @overload unselect(value = nil, from: nil, **options)
# @macro waiting_behavior
#
# @param value [String] Which option to unselect
# @param from [String] The id, Capybara.test_id attribute, name or label of the select box
#
#
# @return [Capybara::Node::Element] The option element unselected
def unselect(value = nil, from: nil, **options)
scope = from ? find(:select, from, options) : self