Sha256: e1d3ce7c2b4e4676b8e2a7ed23a474ac37275e71362ce8ecf400a7cf032c4e41

Contents?: true

Size: 611 Bytes

Versions: 1

Compression:

Stored size: 611 Bytes

Contents

module Makers
  class Railtie < Rails::Railtie

    config.app_generators.test_framework(
      config.app_generators.options[:rails][:test_framework],
      fixture: false
    )

    initializer 'makers.active_support' do
      ActiveSupport::TestCase.include(
        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")
      if File.exist?(path)
        load path
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
makers-4.0.0.4 lib/makers/railtie.rb