From 1aee2f4ce5ea34af8677b8399f45ae2ee0c6e1ea Mon Sep 17 00:00:00 2001 From: did Date: Sun, 13 Feb 2011 01:12:27 +0100 Subject: [PATCH] it prevented the use of rspec when locomotive was using as an engine --- config/initializers/rspec_generator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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