it prevented the use of rspec when locomotive was using as an engine

This commit is contained in:
did 2011-02-13 01:12:27 +01:00
parent 59618d4f66
commit 1aee2f4ce5

View File

@ -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