From 555d27956bad6eb7edf919bbf51cc95394edc47f Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 11 Apr 2012 09:37:48 -0400 Subject: [PATCH] Fix (eval) in backtrace for node methods --- lib/capybara/session.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/capybara/session.rb b/lib/capybara/session.rb index 4c14e365..046cd02a 100644 --- a/lib/capybara/session.rb +++ b/lib/capybara/session.rb @@ -286,7 +286,7 @@ module Capybara end NODE_METHODS.each do |method| - class_eval <<-RUBY + class_eval <<-RUBY, __FILE__, __LINE__+1 def #{method}(*args, &block) current_node.send(:#{method}, *args, &block) end