forked from DataDog/dogstatsd-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspec_helper.rb
More file actions
34 lines (27 loc) · 902 Bytes
/
spec_helper.rb
File metadata and controls
34 lines (27 loc) · 902 Bytes
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
29
30
31
32
33
34
require 'datadog/statsd'
require 'rspec'
require 'rspec/its'
require 'byebug'
require 'timecop'
require 'stringio'
require 'logger'
require 'faker'
require 'allocation_stats' if RUBY_VERSION >= '2.3.0'
require 'climate_control'
Dir[File.join(File.dirname(__FILE__), '/support/**/*.rb')].each { |f| require f }
Dir[File.join(File.dirname(__FILE__), '/matchers/**/*.rb')].each { |f| require f }
Dir[File.join(File.dirname(__FILE__), '/shared/**/*.rb')].each { |f| require f }
RSpec.configure do |config|
config.expect_with :rspec do |expectations|
expectations.syntax = :expect
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
end
config.mock_with :rspec do |mocks|
mocks.verify_partial_doubles = true
end
config.disable_monkey_patching!
if config.files_to_run.one?
config.default_formatter = "doc"
end
config.expose_dsl_globally = true
end