From c6f093f5420ee5d1483c94bb60a521ebf282a8b6 Mon Sep 17 00:00:00 2001 From: Kouhei Sutou Date: Sun, 8 Jan 2012 22:50:55 +0900 Subject: [PATCH] suppress a warning: lib/capybara/selector.rb:47: warning: instance variable @failure_message not initialized --- lib/capybara/selector.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/capybara/selector.rb b/lib/capybara/selector.rb index 5c9e25ae..1bff91d2 100644 --- a/lib/capybara/selector.rb +++ b/lib/capybara/selector.rb @@ -21,6 +21,7 @@ module Capybara @name = name @custom_filters = {} @match = nil + @failure_message = nil instance_eval(&block) end