Skip to content

Commit

Permalink
see if this fixes the failing tests
Browse files Browse the repository at this point in the history
This commit is not supposed to stay
  • Loading branch information
robinboening committed Aug 17, 2021
1 parent 1eee8e8 commit 8477593
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion spec/helpers/alchemy/pages_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion spec/helpers/alchemy/url_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8477593

Please sign in to comment.