lib/makers/railtie.rb in makers-4.0.0.4 vs lib/makers/railtie.rb in makers-5.1.0
- old
+ new
@@ -11,15 +11,10 @@
Makers::Extensions::ActiveSupport::TestCase
)
end
config.after_initialize do
- if Dir.exist?(Rails.root.join('spec'))
- directory = 'spec'
- else
- directory = 'test'
- end
- path = Rails.root.join("#{directory}/makers.rb")
+ path = Rails.root.join("#{Makers.directory}/makers.rb")
if File.exist?(path)
load path
end
end