From d9511a70904c2245c248d2b810efcf0b0a66aea0 Mon Sep 17 00:00:00 2001 From: Jonas Nicklas Date: Wed, 14 Jul 2010 23:29:03 +0200 Subject: [PATCH] Correctly pass message option to locate --- lib/capybara/node/actions.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/capybara/node/actions.rb b/lib/capybara/node/actions.rb index affaa18f..c7175bc8 100644 --- a/lib/capybara/node/actions.rb +++ b/lib/capybara/node/actions.rb @@ -53,8 +53,8 @@ module Capybara end def drag(source_locator, target_locator) - source = locate(:xpath, source_locator, "drag source '#{source_locator}' not found on page") - target = locate(:xpath, target_locator, "drag target '#{target_locator}' not found on page") + source = locate(:xpath, source_locator, :message => "drag source '#{source_locator}' not found on page") + target = locate(:xpath, target_locator, :message => "drag target '#{target_locator}' not found on page") source.drag_to(target) end end