diff --git a/spec/helpers/alchemy/pages_helper_spec.rb b/spec/helpers/alchemy/pages_helper_spec.rb index 9dde29b07c..1342a0c6f3 100644 --- a/spec/helpers/alchemy/pages_helper_spec.rb +++ b/spec/helpers/alchemy/pages_helper_spec.rb @@ -10,7 +10,8 @@ module Alchemy let(:klingon_language_root) { create(:alchemy_page, :language_root, language: klingon) } before do - helper.controller.class_eval { include Alchemy::ConfigurationMethods } + ActionView::TestCase::TestController.include Alchemy::ConfigurationMethods + # helper.controller.class_eval { include Alchemy::ConfigurationMethods } @root_page = language_root # We need this instance variable in the helpers end diff --git a/spec/helpers/alchemy/url_helper_spec.rb b/spec/helpers/alchemy/url_helper_spec.rb index 393204518c..1126c3e595 100644 --- a/spec/helpers/alchemy/url_helper_spec.rb +++ b/spec/helpers/alchemy/url_helper_spec.rb @@ -9,7 +9,8 @@ module Alchemy let(:page) { mock_model(Page, urlname: "testpage", language_code: "en") } before do - helper.controller.class_eval { include Alchemy::ConfigurationMethods } + # helper.controller.class_eval { include Alchemy::ConfigurationMethods } + ActionView::TestCase::TestController.include(Alchemy::ConfigurationMethods) end context "page path helpers" do