diff --git a/lib/capybara/helpers.rb b/lib/capybara/helpers.rb index 5b90d946..57c9d15a 100644 --- a/lib/capybara/helpers.rb +++ b/lib/capybara/helpers.rb @@ -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 diff --git a/lib/capybara/node/base.rb b/lib/capybara/node/base.rb index 7097023d..d2d565a8 100644 --- a/lib/capybara/node/base.rb +++ b/lib/capybara/node/base.rb @@ -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`. diff --git a/lib/capybara/rack_test/form.rb b/lib/capybara/rack_test/form.rb index 86d1814a..c2bca129 100644 --- a/lib/capybara/rack_test/form.rb +++ b/lib/capybara/rack_test/form.rb @@ -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 diff --git a/lib/capybara/spec/public/jquery.js b/lib/capybara/spec/public/jquery.js index 5ccaf5b8..72bbbeec 100644 --- a/lib/capybara/spec/public/jquery.js +++ b/lib/capybara/spec/public/jquery.js @@ -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;