diff --git a/publify_core/spec/lib/theme_spec.rb b/publify_core/spec/lib/theme_spec.rb
index <HASH>..<HASH> 100644
--- a/publify_core/spec/lib/theme_spec.rb
+++ b/publify_core/spec/lib/theme_spec.rb
@@ -5,6 +5,7 @@ require "rails_helper"
 describe Theme, type: :model do
   let(:blog) { build_stubbed :blog }
   let(:default_theme) { blog.current_theme }
+  let(:engine_root) { PublifyCore::Engine.instance.root }
 
   describe "#layout" do
     it 'returns "layouts/default" by default' do
diff --git a/publify_core/spec/rails_helper.rb b/publify_core/spec/rails_helper.rb
index <HASH>..<HASH> 100644
--- a/publify_core/spec/rails_helper.rb
+++ b/publify_core/spec/rails_helper.rb
@@ -91,10 +91,6 @@ RSpec.configure do |config|
   end
 end
 
-def engine_root
-  PublifyCore::Engine.instance.root
-end
-
 Shoulda::Matchers.configure do |config|
   config.integrate do |with|
     with.test_framework :rspec
Move engine_root spec helper method to a let definition