debian-mirror-gitlab/spec/support/rspec.rb

20 lines
514 B
Ruby
Raw Normal View History

2019-10-12 21:52:04 +05:30
# frozen_string_literal: true
2018-10-15 14:42:47 +05:30
require_relative "helpers/stub_configuration"
2018-11-18 11:00:15 +05:30
require_relative "helpers/stub_metrics"
2018-10-15 14:42:47 +05:30
require_relative "helpers/stub_object_storage"
require_relative "helpers/stub_env"
2020-06-23 00:09:42 +05:30
require_relative "helpers/expect_offense"
2018-10-15 14:42:47 +05:30
RSpec.configure do |config|
config.mock_with :rspec
config.raise_errors_for_deprecations!
config.include StubConfiguration
2018-11-18 11:00:15 +05:30
config.include StubMetrics
2018-10-15 14:42:47 +05:30
config.include StubObjectStorage
config.include StubENV
2020-06-23 00:09:42 +05:30
config.include ExpectOffense, type: :rubocop
2018-10-15 14:42:47 +05:30
end