diff --git a/spec/acceptance/locales_spec.rb b/spec/acceptance/locales_spec.rb index 7c3d3dec3..eac71af29 100644 --- a/spec/acceptance/locales_spec.rb +++ b/spec/acceptance/locales_spec.rb @@ -53,9 +53,8 @@ class { 'mysql::server::backup': end it 'displays Japanese failure' do - pending 'waiting on japanese translation in the po file' apply_manifest(pp, catch_failures: true) do |r| - expect(r.stderr).not_to match(%r{The 'prescript' option is not currently implemented for the mysqldump backup provider.}i) + expect(r.stderr).to match(%r{'prescript'オプションは、現在、mysqldumpバックアッププロバイダ向けには実装されていません。}i) end end end @@ -82,14 +81,15 @@ class { 'mysql::server::backup': context 'when triggering ruby interpolated string error' do let(:pp) do <<-EOS - $password_hash = mysql_password('new_password', 'should not have second parameter') - EOS + mysql_user{ '"name@localhost': + ensure => 'present', + } + EOS end it 'displays Japanese error' do - pending 'waiting on japanese translation in the po file' - apply_manifest(pp, catch_error: true) do |r| - expect(r.stderr).not_to match(%r{mysql_password(): Wrong number of arguments given (2 for 1)}i) + apply_manifest(pp, expect_failures: true) do |r| + expect(r.stderr).to match(%r{無効なデータベースのユーザ"name@localhost}i) end end end