From d8a344fe36c9c844b2cd253d00af9201f03ff666 Mon Sep 17 00:00:00 2001 From: Alex Taylor Date: Sat, 27 Feb 2016 14:28:42 -0800 Subject: [PATCH] Update wording and add default values to attach_file docs [ci skip] --- lib/capybara/node/actions.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/capybara/node/actions.rb b/lib/capybara/node/actions.rb index 12bbcf70..c8a52df3 100644 --- a/lib/capybara/node/actions.rb +++ b/lib/capybara/node/actions.rb @@ -150,10 +150,10 @@ module Capybara # @param [String] locator Which field to attach the file to # @param [String] path The path of the file that will be attached, or an array of paths # - # @option options [Symbol] match The matching strategy to use (:one, :first, :prefer_exact, :smart) - # @option options [Boolean] exact Match the exact locator name or accept a partial match - # @option options [Fixnum] wait If using a Javascript driver, number of seconds during which the element will be searched for. - # @option options [Boolean] multiple Match field which allows multiple file selection + # @option options [Symbol] match (:smart) The matching strategy to use (:one, :first, :prefer_exact, :smart). + # @option options [Boolean] exact (true) Match the exact label name/contents or accept a partial match. + # @option options [Fixnum] wait (Capybara.default_max_wait_time) If using a Javascript driver, maximum number of seconds during which the element will be searched for. + # @option options [Boolean] multiple (true) Match field which allows multiple file selection # def attach_file(locator, path, options={}) Array(path).each do |p|