Skip to content

(FM-6471) - Updating tests to include translations #1009

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 5, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions spec/acceptance/locales_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down