mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Fix some typos
This commit is contained in:
parent
a94dfbc4d0
commit
4962b2e419
4 changed files with 6 additions and 6 deletions
|
@ -112,7 +112,7 @@ module Capybara
|
|||
#
|
||||
# A poor man's `pluralize`. Given two declensions, one singular and one
|
||||
# plural, as well as a count, this will pick the correct declension. This
|
||||
# way we can generate gramatically correct error message.
|
||||
# way we can generate grammatically correct error message.
|
||||
#
|
||||
# @param [String] singular The singular form of the word
|
||||
# @param [String] plural The plural form of the word
|
||||
|
|
|
@ -40,14 +40,14 @@ module Capybara
|
|||
|
||||
##
|
||||
#
|
||||
# This method is Capybara's primary defence agains asynchronicity
|
||||
# This method is Capybara's primary defence against asynchronicity
|
||||
# problems. It works by attempting to run a given block of code until it
|
||||
# succeeds. The exact behaviour of this method depends on a number of
|
||||
# factors. Basically there are certain exceptions which, when raised
|
||||
# from the block, instead of bubbling up, are caught, and the block is
|
||||
# re-run.
|
||||
#
|
||||
# Certain drivers, such as RackTest, have no support for aynchronous
|
||||
# Certain drivers, such as RackTest, have no support for asynchronous
|
||||
# processes, these drivers run the block, and any error raised bubbles up
|
||||
# immediately. This allows faster turn around in the case where an
|
||||
# expectation fails.
|
||||
|
@ -61,7 +61,7 @@ module Capybara
|
|||
#
|
||||
# As long as any of these exceptions are thrown, the block is re-run,
|
||||
# until a certain amount of time passes. The amount of time defaults to
|
||||
# {Capybara.default_wait_time} and can be overriden through the `seconds`
|
||||
# {Capybara.default_wait_time} and can be overridden through the `seconds`
|
||||
# argument. This time is compared with the system time to see how much
|
||||
# time has passed. If the return value of `Time.now` is stubbed out,
|
||||
# Capybara will raise `Capybara::FrozenInTime`.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
class Capybara::RackTest::Form < Capybara::RackTest::Node
|
||||
# This only needs to inherit from Rack::Test::UploadedFile because Rack::Test checks for
|
||||
# the class specifically when determing whether to consturct the request as multipart.
|
||||
# the class specifically when determining whether to construct the request as multipart.
|
||||
# That check should be based solely on the form element's 'enctype' attribute value,
|
||||
# which should probably be provided to Rack::Test in its non-GET request methods.
|
||||
class NilUploadedFile < Rack::Test::UploadedFile
|
||||
|
|
2
lib/capybara/spec/public/jquery.js
vendored
2
lib/capybara/spec/public/jquery.js
vendored
|
@ -4768,7 +4768,7 @@ if ( document.documentElement.compareDocumentPosition ) {
|
|||
};
|
||||
}
|
||||
|
||||
// Utility function for retreiving the text value of an array of DOM nodes
|
||||
// Utility function for retrieving the text value of an array of DOM nodes
|
||||
Sizzle.getText = function( elems ) {
|
||||
var ret = "", elem;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue