File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
spec/datadog/core/crashtracking Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 8
8
context 'when using HTTP adapter' do
9
9
context 'when SSL is enabled' do
10
10
let ( :agent_settings ) do
11
- double (
12
- 'agent_settings' ,
11
+ instance_double (
12
+ Datadog :: Core :: Configuration :: AgentSettingsResolver :: AgentSettings ,
13
13
adapter : Datadog ::Core ::Configuration ::Ext ::Agent ::HTTP ::ADAPTER ,
14
14
ssl : true ,
15
15
hostname : 'example.com' ,
24
24
25
25
context 'when SSL is disabled' do
26
26
let ( :agent_settings ) do
27
- double (
28
- 'agent_settings' ,
27
+ instance_double (
28
+ Datadog :: Core :: Configuration :: AgentSettingsResolver :: AgentSettings ,
29
29
adapter : Datadog ::Core ::Configuration ::Ext ::Agent ::HTTP ::ADAPTER ,
30
30
ssl : false ,
31
31
hostname : 'example.com' ,
41
41
42
42
context 'when using UnixSocket adapter' do
43
43
let ( :agent_settings ) do
44
- double (
45
- 'agent_settings' ,
44
+ instance_double (
45
+ Datadog :: Core :: Configuration :: AgentSettingsResolver :: AgentSettings ,
46
46
adapter : Datadog ::Core ::Configuration ::Ext ::Agent ::UnixSocket ::ADAPTER ,
47
47
uds_path : '/var/run/datadog.sock'
48
48
)
54
54
end
55
55
56
56
context 'when using unknownm adapter' do
57
- let ( :agent_settings ) { double ( 'agent_settings' , adapter : 'unknown' ) }
57
+ let ( :agent_settings ) do
58
+ instance_double ( Datadog ::Core ::Configuration ::AgentSettingsResolver ::AgentSettings , adapter : 'unknown' )
59
+ end
58
60
59
61
it 'returns nil' do
60
62
expect ( described_class . resolve ( agent_settings ) ) . to be_nil
You can’t perform that action at this time.
0 commit comments