1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
require 'rspec'
if ENV['CI'] || (defined?(:RUBY_ENGINE) && RUBY_ENGINE != 'rbx')
begin
require 'codeclimate-test-reporter'
CodeClimate::TestReporter.start
rescue LoadError
end
end
require 'omniauth-kerberos'
Dir[File.expand_path('spec/support/**/*.rb')].each { |f| require f }
# Disable omniauth logger
class NullLogger < Logger
def initialize(*_args)
end
def add(*_args, &_block)
end
end
OmniAuth.config.logger = NullLogger.new
RSpec.configure do |config|
config.order = 'random'
end
|