Skip to content

Commit

Permalink
Merge pull request #4740 from mzazrivec/fix_delayed_translation_test
Browse files Browse the repository at this point in the history
Fix delayed translation test
  • Loading branch information
himdel committed Oct 8, 2018
2 parents 737c42f + 8312a01 commit 2924f3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/helpers/application_helper/toolbar_builder_spec.rb
Expand Up @@ -271,13 +271,13 @@ def add_button_to_set(button_set, button)
it "does delayed translation of text title and confirm strings" do
%i(text title confirm).each do |key|
@input[key] = proc do
_("Add New %{model}") % {:model => 'Model'}
_("Add New %{table}") % {:table => 'Table'}
end
end
FastGettext.locale = 'ja'
toolbar_builder.apply_common_props(@button, @input)
%i(text title confirm).each do |key|
expect(@button[key]).not_to match('Add New Model')
expect(@button[key]).not_to match('Add New Table')
end
FastGettext.locale = 'en'
end
Expand Down

0 comments on commit 2924f3a

Please sign in to comment.