lib/capybara/node/actions.rb in capybara-2.9.2 vs lib/capybara/node/actions.rb in capybara-2.10.0

- old
+ new

@@ -60,11 +60,11 @@ ## # # Locate a text field or text area and fill it in with the given text # The field can be found via its name, id or label text. # - # page.fill_in 'Name', :with => 'Bob' + # page.fill_in 'Name', with: 'Bob' # # # @overload fill_in([locator], options={}) # @param [String] locator Which field to fill in # @param [Hash] options @@ -204,11 +204,11 @@ # Otherwise it finds an option inside current scope and selects it. # If the select box is a multiple select, +select+ can be called multiple times to select more than # one option. # The select box can be found via its name, id or label text. The option can be found by its text. # - # page.select 'March', :from => 'Month' + # page.select 'March', from: 'Month' # # @macro waiting_behavior # # @param [String] value Which option to select # @option options [String] :from The id, name or label of the select box @@ -226,10 +226,10 @@ # # 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.unselect 'March', :from => 'Month' + # page.unselect 'March', from: 'Month' # # @macro waiting_behavior # # @param [String] value Which option to unselect # @param [Hash{:from => String}] options The id, name or label of the select box