From ab2ace6bbef1cc98c98e5a9a6b45e734bc5edd9d Mon Sep 17 00:00:00 2001 From: Rajarshi Das Date: Sat, 6 Sep 2014 11:49:39 +0530 Subject: fix the undefined method content_tag #15245 not required include ActionView::Helpers::TagHelper in test as well --- actionview/lib/action_view/helpers/translation_helper.rb | 1 + actionview/test/template/translation_helper_test.rb | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/actionview/lib/action_view/helpers/translation_helper.rb b/actionview/lib/action_view/helpers/translation_helper.rb index 1d50ea2ff5..c2fda42396 100644 --- a/actionview/lib/action_view/helpers/translation_helper.rb +++ b/actionview/lib/action_view/helpers/translation_helper.rb @@ -6,6 +6,7 @@ module ActionView # = Action View Translation Helpers module Helpers module TranslationHelper + include TagHelper # Delegates to I18n#translate but also performs three additional functions. # # First, it will ensure that any thrown +MissingTranslation+ messages will be turned diff --git a/actionview/test/template/translation_helper_test.rb b/actionview/test/template/translation_helper_test.rb index 41f6770f23..362f05ea70 100644 --- a/actionview/test/template/translation_helper_test.rb +++ b/actionview/test/template/translation_helper_test.rb @@ -1,7 +1,6 @@ require 'abstract_unit' class TranslationHelperTest < ActiveSupport::TestCase - include ActionView::Helpers::TagHelper include ActionView::Helpers::TranslationHelper attr_reader :request, :view -- cgit v1.2.3