only require silence_stream if active_support hasn't already defined it

This commit is contained in:
snusnu 2009-05-13 05:01:19 +02:00
parent 926bcc6c66
commit 77168fd29d
1 changed files with 7 additions and 1 deletions

View File

@ -1,7 +1,13 @@
require "webrat"
gem "selenium-client", ">=1.2.14"
require "selenium/client"
# active_support already defines silence_stream, no need to do that again if it's already present.
# http://github.com/rails/rails/blob/master/activesupport/lib/active_support/core_ext/kernel/reporting.rb
unless Kernel.respond_to?(:silence_stream)
require "webrat/selenium/silence_stream"
end
require "webrat/selenium/selenium_session"
require "webrat/selenium/matchers"
require "webrat/core_extensions/tcp_socket"