Skip to content

Commit

Permalink
(CONT-792) - Correct Layout/SpaceAroundMethodCallOperator
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanbreen28 committed Apr 19, 2023
1 parent 7606efa commit f83639c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
6 changes: 0 additions & 6 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Offense count: 6
# This cop supports safe autocorrection (--autocorrect).
Layout/SpaceAroundMethodCallOperator:
Exclude:
- 'spec/classes/server/config_spec.rb'

# Offense count: 15
# This cop supports unsafe autocorrection (--autocorrect-all).
Lint/BooleanSymbol:
Expand Down
12 changes: 6 additions & 6 deletions spec/classes/server/config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
it 'has the correct systemd-override drop file' do
is_expected.to contain_file('/etc/systemd/system/postgresql.service.d/postgresql.conf').with(
ensure: 'file', owner: 'root', group: 'root',
) .that_requires('File[/etc/systemd/system/postgresql.service.d]')
).that_requires('File[/etc/systemd/system/postgresql.service.d]')
end

it 'has the correct systemd-override file #regex' do
Expand Down Expand Up @@ -59,7 +59,7 @@ class { 'postgresql::server': }
end

it 'has the correct systemd-override file #regex' do
is_expected.to contain_file('/etc/systemd/system/postgresql-10.service.d/postgresql-10.conf') .without_content(%r{\.include})
is_expected.to contain_file('/etc/systemd/system/postgresql-10.service.d/postgresql-10.conf').without_content(%r{\.include})
end
end
end
Expand All @@ -79,7 +79,7 @@ class { 'postgresql::server': }
it 'has the correct systemd-override drop file' do
is_expected.to contain_file('/etc/systemd/system/postgresql.service.d/postgresql.conf').with(
ensure: 'file', owner: 'root', group: 'root',
) .that_requires('File[/etc/systemd/system/postgresql.service.d]')
).that_requires('File[/etc/systemd/system/postgresql.service.d]')
end

it 'has the correct systemd-override file #regex' do
Expand All @@ -103,7 +103,7 @@ class { 'postgresql::server': }
)
end
it 'has the correct systemd-override file #regex' do
is_expected.to contain_file('/etc/systemd/system/postgresql-14.service.d/postgresql-14.conf') .without_content(%r{\.include})
is_expected.to contain_file('/etc/systemd/system/postgresql-14.service.d/postgresql-14.conf').without_content(%r{\.include})
end
end
end
Expand All @@ -123,7 +123,7 @@ class { 'postgresql::server': }
it 'has the correct systemd-override drop file' do
is_expected.to contain_file('/etc/systemd/system/postgresql.service.d/postgresql.conf').with(
ensure: 'file', owner: 'root', group: 'root',
) .that_requires('File[/etc/systemd/system/postgresql.service.d]')
).that_requires('File[/etc/systemd/system/postgresql.service.d]')
end

it 'has the correct systemd-override file #regex' do
Expand All @@ -148,7 +148,7 @@ class { 'postgresql::server': }
end

it 'has the correct systemd-override file #regex' do
is_expected.to contain_file('/etc/systemd/system/postgresql-13.service.d/postgresql-13.conf') .without_content(%r{\.include})
is_expected.to contain_file('/etc/systemd/system/postgresql-13.service.d/postgresql-13.conf').without_content(%r{\.include})
end
end
end
Expand Down

0 comments on commit f83639c

Please sign in to comment.