From 6890a56eb70403dfa2004f0dbdd966c72953fb23 Mon Sep 17 00:00:00 2001 From: Hunter Haugen Date: Tue, 16 Jul 2013 12:32:33 -0700 Subject: [PATCH] Reindent postgresql::database_grant spec --- spec/system/install_spec.rb | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/spec/system/install_spec.rb b/spec/system/install_spec.rb index 4006ff2..9c37037 100644 --- a/spec/system/install_spec.rb +++ b/spec/system/install_spec.rb @@ -241,7 +241,7 @@ describe 'install:' do end end - describe 'postgresql::grant' do + describe 'postgresql::database_grant' do it 'should grant access so a user can create in a database' do begin pp = <<-EOS @@ -258,8 +258,10 @@ describe 'install:' do postgresql::database_user { $user: password_hash => postgresql_password($user, $password), - require => [ Class['postgresql::server'], - User[$user] ], + require => [ + Class['postgresql::server'], + User[$user], + ], } postgresql::database { $db: @@ -267,11 +269,13 @@ describe 'install:' do } postgresql::database_grant { 'grant create test': - privilege => 'CREATE', - db => $db, - role => $user, - require => [ Postgresql::Database[$db], - Postgresql::Database_user[$user] ], + privilege => 'CREATE', + db => $db, + role => $user, + require => [ + Postgresql::Database[$db], + Postgresql::Database_user[$user], + ], } EOS