Merge pull request #194 from kbarber/fixed_failing_utf8_tests

Fix the non-defaults test failing to use UTF8
This commit is contained in:
Chris Price 2013-06-18 08:28:47 -07:00
commit 80d44718e9
2 changed files with 21 additions and 2 deletions

1
.gitignore vendored
View file

@ -4,3 +4,4 @@ Gemfile.lock
metadata.json
spec/fixtures
pkg/
.rspec_system/

View file

@ -1,6 +1,22 @@
require 'spec_helper_system'
describe 'non defaults:' do
before :all do
puppet_apply(<<-EOS)
if($::operatingsystem =~ /Debian|Ubuntu/) {
# Need to make sure the correct utf8 locale is ready for our
# non-standard tests
file { '/etc/locale.gen':
content => "en_US ISO-8859-1\nen_NG UTF-8\nen_US UTF-8\n",
}~>
exec { '/usr/sbin/locale-gen':
logoutput => true,
refreshonly => true,
}
}
EOS
end
context 'test installing non-default version of postgresql' do
after :each do
# Cleanup
@ -25,6 +41,8 @@ describe 'non defaults:' do
class { "postgresql":
version => "9.2",
manage_package_repo => true,
charset => 'UTF8',
locale => 'en_US.UTF-8',
}->
class { "postgresql::server": }->
postgresql::db { "postgresql_test_db":