Merge pull request #1822 from teamcapybara/fix-spec-name

Fix name of one selector spec
This commit is contained in:
Thomas Walpole 2017-01-03 01:34:33 -08:00 committed by GitHub
commit de20dc072b
1 changed files with 2 additions and 2 deletions

View File

@ -104,8 +104,8 @@ Capybara::SpecHelper.spec '#find' do
end
end
context "with custom selector with :for option" do
it "should use the selector when it matches the :for option" do
context "with custom selector with custom `match` block" do
it "should use the custom selector when locator matches the block" do
Capybara.add_selector(:beatle) do
xpath { |num| ".//*[contains(@class, 'beatle')][#{num}]" }
match { |value| value.is_a?(Integer) }