diff --git a/config/initializers/rspec_generator.rb b/config/initializers/rspec_generator.rb index b5f8d91c..514eba18 100644 --- a/config/initializers/rspec_generator.rb +++ b/config/initializers/rspec_generator.rb @@ -1,4 +1,4 @@ -if Rails.env.test? +if Rails.env.test? && defined?(Locomotive::Application) # does not need it for the engine version Locomotive::Application.configure do config.generators do |g| g.integration_tool :rspec