diff options
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/test/actionpack/controller/view_paths_test.rb | 2 | ||||
-rw-r--r-- | actionview/test/template/form_helper_test.rb | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/actionview/test/actionpack/controller/view_paths_test.rb b/actionview/test/actionpack/controller/view_paths_test.rb index e676a2ecd4..085e803c6c 100644 --- a/actionview/test/actionpack/controller/view_paths_test.rb +++ b/actionview/test/actionpack/controller/view_paths_test.rb @@ -131,7 +131,7 @@ class ViewLoadPathsTest < ActionController::TestCase "Decorated body", template.identifier, template.handler, - virtual_path: template.virtual_path, + virtual_path: template.virtual_path, format: template.formats ) end diff --git a/actionview/test/template/form_helper_test.rb b/actionview/test/template/form_helper_test.rb index 590e79d114..70f690478d 100644 --- a/actionview/test/template/form_helper_test.rb +++ b/actionview/test/template/form_helper_test.rb @@ -16,7 +16,8 @@ class FormHelperTest < ActionView::TestCase setup do # Create "label" locale for testing I18n label helpers - I18n.backend.store_translations "label", activemodel: { + I18n.backend.store_translations "label", + activemodel: { attributes: { post: { cost: "Total cost" @@ -47,7 +48,8 @@ class FormHelperTest < ActionView::TestCase } # Create "submit" locale for testing I18n submit helpers - I18n.backend.store_translations "submit", helpers: { + I18n.backend.store_translations "submit", + helpers: { submit: { create: "Create %{model}", update: "Confirm %{model} changes", @@ -58,7 +60,8 @@ class FormHelperTest < ActionView::TestCase } } - I18n.backend.store_translations "placeholder", activemodel: { + I18n.backend.store_translations "placeholder", + activemodel: { attributes: { post: { cost: "Total cost" |