From 33f8fe7e42b6366928aa9c80d031ae2abf56c948 Mon Sep 17 00:00:00 2001 From: Masafumi Koba Date: Thu, 30 May 2019 16:31:19 +0900 Subject: [PATCH] Fix `Capybara` and `Selector` docs a bit [skip ci] The current docs (v3.22.0): - [`Capybara.configure`](https://www.rubydoc.info/gems/capybara/3.22.0/Capybara#configure-class_method) - [`Capybara::Selector`](https://www.rubydoc.info/gems/capybara/3.22.0/Capybara/Selector) --- lib/capybara.rb | 2 +- lib/capybara/selector.rb | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/capybara.rb b/lib/capybara.rb index 1c8dd74e..e74b08a4 100644 --- a/lib/capybara.rb +++ b/lib/capybara.rb @@ -95,7 +95,7 @@ module Capybara # - **server** (Symbol = `:default` (which uses puma)) - The name of the registered server to use when running the app under test. # - **server_errors** (Array\ = `[Exception]`) - Error classes that should be raised in the tests if they are raised in the server # and {configure raise_server_errors} is `true`. - # - **test_id** (`Symbol`, `String`, `nil` = `nil`) - Optional attribute to match locator against with built-in selectors along with id. + # - **test_id** (Symbol, String, `nil` = `nil`) - Optional attribute to match locator against with built-in selectors along with id. # - **threadsafe** (Boolean = `false`) - Whether sessions can be configured individually. # # #### DSL Options diff --git a/lib/capybara/selector.rb b/lib/capybara/selector.rb index 7fd6306a..825ca8cf 100644 --- a/lib/capybara/selector.rb +++ b/lib/capybara/selector.rb @@ -8,7 +8,7 @@ require 'capybara/selector/definition' # All Selectors below support the listed selector specific filters in addition to the following system-wide filters # * :id (String, Regexp, XPath::Expression) - Matches the id attribute # * :class (String, Array, Regexp, XPath::Expression) - Matches the class(es) provided -# * :style (String, Regexp, Hash) - Match on elements style +# * :style (String, Regexp, Hash) - Match on elements style # # ### Built-in Selectors # @@ -146,7 +146,7 @@ require 'capybara/selector/definition' # * :cols (Array>) - Match all ``s - visibility of `` elements is not considered # # * **:table_row** - Find table row -# * Locator: Array, Hash table row `` contents - visibility of `` elements is not considered +# * Locator: Array, Hash table row `` contents - visibility of `` elements is not considered # # * **:frame** - Find frame/iframe elements # * Locator: Match id or name @@ -156,7 +156,7 @@ require 'capybara/selector/definition' # * **:element** # * Locator: Type of element ('div', 'a', etc) - if not specified defaults to '*' # * Filters: -# * :<any> (String, Regexp) - Match on any specified element attribute +# * :\ (String, Regexp) - Match on any specified element attribute # class Capybara::Selector; end