From 63fa33ce5941527b1b5cc4abbb8c5762263e6260 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Mon, 28 Jul 2014 17:18:45 -0300 Subject: [PATCH] Fix cucumber step definitions --- features/step_definitions/web_steps.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/step_definitions/web_steps.rb b/features/step_definitions/web_steps.rb index d5a8891..fd1994a 100644 --- a/features/step_definitions/web_steps.rb +++ b/features/step_definitions/web_steps.rb @@ -27,13 +27,13 @@ end When /^(?:|I )press "([^"]*)"(?: within "([^"]*)")?$/ do |button, selector| with_scope(selector) do - first(:button, button).click + click_button(button, :match => :prefer_exact) end end When /^(?:|I )follow "([^"]*)"(?: within "([^"]*)")?$/ do |link, selector| with_scope(selector) do - first(:link, link).click + click_link(link, :match => :prefer_exact) end end -- libgit2 0.21.2