Fix spelling of *modify*

This commit is contained in:
Paul Menzel 2016-02-01 18:03:47 +01:00
parent 23b10e76f2
commit f636a210c0
2 changed files with 2 additions and 2 deletions

View File

@ -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
#

View File

@ -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'