We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a2e03c commit 30950f0Copy full SHA for 30950f0
1 file changed
spec/classes/datadog_agent_integrations_cassandra_spec.rb
@@ -46,15 +46,18 @@
46
it { should contain_file(conf_file).with_content(%r{user: baz}) }
47
end
48
49
- context 'with tags parameter array' do
+ context 'with tags parameter hash' do
50
let(:params) {{
51
password: 'foobar',
52
- tags: %w{ foo bar baz },
+ tags: {
53
+ 'foo'=> 'bar',
54
+ 'baz'=> 'ama',
55
+ }
56
}}
- it { should contain_file(conf_file).with_content(/tags:[^-]+- foo\s+- bar\s+- baz\s*?[^-]/m) }
57
+ it { should contain_file(conf_file).with_content(/tags:\s+foo: bar\s+baz: ama\s*?[^-]/m) }
58
59
- context 'tags not array' do
60
+ context 'tags not hash' do
61
62
63
tags: 'aoeu',
0 commit comments