diff --git a/.rspec b/.rspec index eb5050a..2db9087 100644 --- a/.rspec +++ b/.rspec @@ -1,3 +1,4 @@ --format documentation --require spec_helper --color +--order random diff --git a/spec/datadog_spec.rb b/spec/datadog_spec.rb index 84ff6db..4c01b82 100644 --- a/spec/datadog_spec.rb +++ b/spec/datadog_spec.rb @@ -4,6 +4,12 @@ RSpec.describe Racecar::Datadog do describe '.statsd' do + before do + Racecar::Datadog.socket_path = nil + Racecar::Datadog.host = nil + Racecar::Datadog.port = nil + end + it 'configures with host/port by default' do statsd = Racecar::Datadog.statsd expect(statsd.host).to eq('127.0.0.1')