only require silence_stream if active_support hasn't already defined it
This commit is contained in:
parent
926bcc6c66
commit
77168fd29d
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user