Skip to content

Commit 4eecdaf

Browse files
author
Helen
authored
Merge pull request #1009 from pmcmaw/fm-6471
(FM-6471) - Updating tests to include translations
2 parents e8ca172 + 9377a4c commit 4eecdaf

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

spec/acceptance/locales_spec.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,8 @@ class { 'mysql::server::backup':
5353
end
5454

5555
it 'displays Japanese failure' do
56-
pending 'waiting on japanese translation in the po file'
5756
apply_manifest(pp, catch_failures: true) do |r|
58-
expect(r.stderr).not_to match(%r{The 'prescript' option is not currently implemented for the mysqldump backup provider.}i)
57+
expect(r.stderr).to match(%r{'prescript'オプションは、現在、mysqldumpバックアッププロバイダ向けには実装されていません。}i)
5958
end
6059
end
6160
end
@@ -82,14 +81,15 @@ class { 'mysql::server::backup':
8281
context 'when triggering ruby interpolated string error' do
8382
let(:pp) do
8483
<<-EOS
85-
$password_hash = mysql_password('new_password', 'should not have second parameter')
86-
EOS
84+
mysql_user{ '"name@localhost':
85+
ensure => 'present',
86+
}
87+
EOS
8788
end
8889

8990
it 'displays Japanese error' do
90-
pending 'waiting on japanese translation in the po file'
91-
apply_manifest(pp, catch_error: true) do |r|
92-
expect(r.stderr).not_to match(%r{mysql_password(): Wrong number of arguments given (2 for 1)}i)
91+
apply_manifest(pp, expect_failures: true) do |r|
92+
expect(r.stderr).to match(%r{無効なデータベースのユーザ"name@localhost}i)
9393
end
9494
end
9595
end

0 commit comments

Comments
 (0)