From f636a210c06636971a11e1f33a050eee5e7710c5 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Mon, 1 Feb 2016 18:03:47 +0100 Subject: [PATCH 1/2] Fix spelling of *modify* --- lib/capybara.rb | 2 +- spec/selector_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/capybara.rb b/lib/capybara.rb index c2bf3a15..561e3e03 100644 --- a/lib/capybara.rb +++ b/lib/capybara.rb @@ -117,7 +117,7 @@ module Capybara # For example modifying the :button selector to also find divs styled # to look like buttons might look like this # - # Capybara.modfiy_selector(:button) do + # Capybara.modify_selector(:button) do # xpath { |locator| XPath::HTML.button(locator).or(XPath::css('div.btn')[XPath::string.n.is(locator)]) } # end # diff --git a/spec/selector_spec.rb b/spec/selector_spec.rb index 047d311f..61304a3e 100644 --- a/spec/selector_spec.rb +++ b/spec/selector_spec.rb @@ -29,7 +29,7 @@ RSpec.describe Capybara do end end - describe "modfiy_selector" do + describe "modify_selector" do it "allows modifying a selector" do el = string.find(:custom_selector, 'a') expect(el.tag_name).to eq 'div' From bcc56025be85e06c4b7ccb44d37132b4d185d52f Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Mon, 1 Feb 2016 18:05:07 +0100 Subject: [PATCH 2/2] lib/capybara: Fix spelling of *created* --- lib/capybara.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/capybara.rb b/lib/capybara.rb index 561e3e03..7a175983 100644 --- a/lib/capybara.rb +++ b/lib/capybara.rb @@ -113,7 +113,7 @@ module Capybara ## # - # Modify a selector previously craeated by {Capybara.add_selector}. + # Modify a selector previously created by {Capybara.add_selector}. # For example modifying the :button selector to also find divs styled # to look like buttons might look like this #