Skip to content

Commit

Permalink
Merge pull request teamcapybara#1648 from giantmonkey/fix-spelling-of…
Browse files Browse the repository at this point in the history
…-two-words

Fix spelling of two words
  • Loading branch information
twalpole committed Feb 1, 2016
2 parents 23b10e7 + bcc5602 commit 34e2eff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/capybara.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ def add_selector(name, &block)

##
#
# 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
#
# 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
#
Expand Down
2 changes: 1 addition & 1 deletion spec/selector_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
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'
Expand Down

0 comments on commit 34e2eff

Please sign in to comment.