Sha256: 042a4ee8d919a0d982e10c16086476bc3f5ca3fb6ca4794ece96ad4bd4b47ec5
Contents?: true
Size: 545 Bytes
Versions: 1
Compression:
Stored size: 545 Bytes
Contents
module Makers class Railtie < Rails::Railtie initializer :makers do config.app_generators.test_framework( config.app_generators.options[:rails][:test_framework], fixture: false ) 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 ActiveSupport::TestCase.include Makers::Extensions::ActiveSupport::TestCase end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
makers-0.2.0 | lib/makers/railtie.rb |