From 1cea0f9f00816bbd5f03754b244dcd73c9dabd45 Mon Sep 17 00:00:00 2001 From: Jared Ning Date: Thu, 29 Sep 2011 15:17:32 -0500 Subject: [PATCH] Change built-in css custom selector to use new css method. --- lib/capybara/selector.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/capybara/selector.rb b/lib/capybara/selector.rb index c674deeb..10da544c 100644 --- a/lib/capybara/selector.rb +++ b/lib/capybara/selector.rb @@ -88,7 +88,7 @@ Capybara.add_selector(:xpath) do end Capybara.add_selector(:css) do - xpath { |css| XPath.css(css) } + css { |css| css } end Capybara.add_selector(:id) do