jnicklas/capybara — pull request #599 by kou (2012-01-08 14:07:52+00:00)
Title: Suppress warnings

Those changes suppress warnings under lib/capybara/ expect lib/capybara/spec/.

Suppressed warnings:

lib/capybara.rb:200: warning: instance variable @current_driver not initialized
lib/capybara.rb:192: warning: instance variable @default_driver not initialized
lib/capybara/selector.rb:54: warning: instance variable @match not initialized
lib/capybara/selector.rb:47: warning: instance variable @failure_message not initialized
lib/capybara/rack_test/browser.rb:46: warning: assigned but unused variable - current_uri
lib/capybara/selenium/driver.rb:82: warning: assigned but unused variable - e
lib/capybara/selenium/driver.rb:14: warning: instance variable @browser not initialized
lib/capybara/selenium/driver.rb:79: warning: instance variable @browser not initialized
lib/capybara/selenium/driver.rb:22: warning: instance variable @exit_status not initialized

You can see all warnings with the following patch:

diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index f5de530..e66490d 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,3 +1,4 @@
+$VERBOSE = true
$:.unshift(File.expand_path('../lib', File.dirname(__FILE__)))

require 'rubygems'