File: spec_helper.rb

package info (click to toggle)
ruby-omniauth-kerberos 0.3.0-3.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 116 kB
  • sloc: ruby: 83; makefile: 2
file content (28 lines) | stat: -rw-r--r-- 516 bytes parent folder | download | duplicates (2)
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