it prevented the use of rspec when locomotive was using as an engine
This commit is contained in:
parent
59618d4f66
commit
1aee2f4ce5
@ -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
|
Locomotive::Application.configure do
|
||||||
config.generators do |g|
|
config.generators do |g|
|
||||||
g.integration_tool :rspec
|
g.integration_tool :rspec
|
||||||
|
Loading…
Reference in New Issue
Block a user