2023-10-27 14:53:56 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-10-28 11:33:28 +02:00
|
|
|
require "simplecov"
|
|
|
|
|
2023-10-28 23:22:14 +02:00
|
|
|
SimpleCov.start do
|
|
|
|
enable_coverage :branch
|
2023-10-28 23:42:28 +02:00
|
|
|
add_filter "/spec/"
|
2023-10-28 23:22:14 +02:00
|
|
|
end
|
2023-10-27 14:53:56 +02:00
|
|
|
require "rex"
|
2023-10-28 11:33:28 +02:00
|
|
|
|
2023-10-28 11:06:51 +02:00
|
|
|
Dir[
|
|
|
|
File.join(
|
|
|
|
File.expand_path("../support", __FILE__),
|
|
|
|
"**",
|
|
|
|
"*.rb"
|
|
|
|
)].sort.each { |f| require f }
|
2023-10-27 14:53:56 +02:00
|
|
|
|
|
|
|
RSpec.configure do |config|
|
|
|
|
# Enable flags like --only-failures and --next-failure
|
|
|
|
config.example_status_persistence_file_path = ".rspec_status"
|
|
|
|
|
|
|
|
# Disable RSpec exposing methods globally on `Module` and `main`
|
|
|
|
config.disable_monkey_patching!
|
|
|
|
|
|
|
|
config.expect_with :rspec do |c|
|
|
|
|
c.syntax = :expect
|
|
|
|
end
|
|
|
|
end
|