Skip to content

Commit 7f29302

Browse files
Bastian Schmidtekohl
authored andcommitted
Replace backslash with %r
1 parent d14cfda commit 7f29302

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

spec/classes/foreman_proxy__plugin__salt_spec.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@
3434

3535
it 'should change salt.yml parameters' do
3636
should contain_file('/etc/foreman-proxy/settings.d/salt.yml').
37-
with_content(/:salt_command_user: example/).
38-
with_content(/:autosign_file: \/etc\/salt\/example.conf/).
39-
with_content(/:use_api: true/).
40-
with_content(/:api_url: http:\/\/foreman.example.com/).
41-
with_content(/:api_auth: ldap/).
42-
with_content(/:api_username: saltapi/).
43-
with_content(/:api_password: letmein/).
44-
with_content(/:saltfile: \/etc\/salt\/Saltfile/)
37+
with_content(%r{:salt_command_user: example}).
38+
with_content(%r{:autosign_file: /etc/salt/example.conf}).
39+
with_content(%r{:use_api: true}).
40+
with_content(%r{:api_url: http://foreman.example.com}).
41+
with_content(%r{:api_auth: ldap}).
42+
with_content(%r{:api_username: saltapi}).
43+
with_content(%r{:api_password: letmein}).
44+
with_content(%r{:saltfile: /etc/salt/Saltfile})
4545
end
4646
end
4747
end

0 commit comments

Comments
 (0)