summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
blob: 5ac288a784858e2a6b1448d7eb284763a1b927b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
if ENV['CI']
  require 'simplecov'
  SimpleCov.start
end

require 'pry'

require 'rspec'
require 'hashie'
require 'json'
require 'rspec/pending_for'
require './spec/support/ruby_version_check'
require './spec/support/logger'
require './spec/support/matchers'

Dir[File.expand_path(File.join(__dir__, 'support', '**', '*'))].sort.each { |file| require file }

RSpec.configure do |config|
  config.extend RubyVersionCheck
  config.expect_with :rspec do |expect|
    expect.syntax = :expect
  end
  config.warnings = true
end