Skip to content

Commit c1ca98f

Browse files
committed
Fix linting
1 parent 1af2304 commit c1ca98f

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

spec/unit/defines/server/extension_spec.rb

+10-3
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@
178178
end
179179

180180
context 'without including postgresql::server' do
181-
182181
let :pre_condition do
183182
"class {'postgresql::server':}"
184183
end
@@ -238,7 +237,11 @@
238237
end
239238

240239
it { is_expected.to compile.with_all_deps }
241-
it { is_expected.to contain_postgresql_psql('postgres: CREATE EXTENSION "pg_repack"').with_connect_settings('PGHOST' => 'postgres-db-server', 'DBVERSION' => '9.1', 'PGPORT' => '1234').with_port(nil) }
240+
it {
241+
is_expected.to contain_postgresql_psql('postgres: CREATE EXTENSION "pg_repack"')
242+
.with_connect_settings('PGHOST' => 'postgres-db-server', 'DBVERSION' => '9.1', 'PGPORT' => '1234')
243+
.with_port(nil)
244+
}
242245
end
243246

244247
context 'with specific db connection settings - port overriden by explicit parameter' do
@@ -258,6 +261,10 @@
258261
end
259262

260263
it { is_expected.to compile.with_all_deps }
261-
it { is_expected.to contain_postgresql_psql('postgres: CREATE EXTENSION "pg_repack"').with_connect_settings('PGHOST' => 'postgres-db-server', 'DBVERSION' => '9.1', 'PGPORT' => '1234').with_port('5678') }
264+
it {
265+
is_expected.to contain_postgresql_psql('postgres: CREATE EXTENSION "pg_repack"')
266+
.with_connect_settings('PGHOST' => 'postgres-db-server', 'DBVERSION' => '9.1', 'PGPORT' => '1234')
267+
.with_port('5678')
268+
}
262269
end
263270
end

0 commit comments

Comments
 (0)