From 40a5b251d29da674b42452aa07133fdf6628c10c Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Thu, 9 Jan 2014 18:00:47 -0500 Subject: [PATCH] Make stdout deprecation warning more specific In a Rails application with a large number of dependencies, it's hard to know which library is emitting a warning. This adds "capybara-webkit" to the deprecation warning. Resolves #607. --- lib/capybara/webkit/connection.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/capybara/webkit/connection.rb b/lib/capybara/webkit/connection.rb index db27bf2..d8bee71 100644 --- a/lib/capybara/webkit/connection.rb +++ b/lib/capybara/webkit/connection.rb @@ -16,7 +16,8 @@ module Capybara::Webkit if options.has_key?(:stderr) @output_target = options[:stderr] elsif options.has_key?(:stdout) - warn "[DEPRECATION] The `stdout` option is deprecated. Please use `stderr` instead." + warn '[DEPRECATION] The Capybara::Webkit::Connection `stdout` option ' \ + 'is deprecated. Please use `stderr` instead.' @output_target = options[:stdout] else @output_target = $stderr