From e73e77690ba41ab81a4254fb3239f1d3bd0c049d Mon Sep 17 00:00:00 2001 From: Emilien Taque Date: Thu, 7 Apr 2011 21:43:30 +0200 Subject: [PATCH] Node::Actions doc correction --- lib/capybara/node/actions.rb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/capybara/node/actions.rb b/lib/capybara/node/actions.rb index c1196755..7827e4f0 100644 --- a/lib/capybara/node/actions.rb +++ b/lib/capybara/node/actions.rb @@ -104,7 +104,7 @@ module Capybara # # page.select 'March', :from => 'Month' # - # @param [String] locator Which check box to uncheck + # @param [String] value Which option to select # @param [Hash{:from => String}] The id, name or label of the select box # def select(value, options={}) @@ -121,13 +121,14 @@ module Capybara ## # - # Find a select box on the page and select a particular option from it. If the select - # box is a multiple select, +select+ can be called multiple times to select more than + # Find a select box on the page and unselect a particular option from it. If the select + # box is a multiple select, +unselect+ can be called multiple times to unselect more than # one option. The select box can be found via its name, id or label text. # - # page.uncheck('German') + # page.unselect 'March', :from => 'Month' # - # @param [String] locator Which check box to uncheck + # @param [String] value Which option to unselect + # @param [Hash{:from => String}] The id, name or label of the select box # def unselect(value, options={}) if options.has_key?(:from)