Sha256: abeea12967e2dab348578219df6cfd1a8f6ac2bd9173a2c7e090a09c2188dc39
Contents?: true
Size: 661 Bytes
Versions: 15
Compression:
Stored size: 661 Bytes
Contents
require 'factory_girl' require 'factory_girl_rails/generator' require 'rails' module FactoryGirl class Railtie < Rails::Railtie initializer "factory_girl.set_fixture_replacement" do FactoryGirlRails::Generator.new(config).run end initializer "factory_girl.set_factory_paths" do FactoryGirl.definition_file_paths = [ Rails.root.join('factories'), Rails.root.join('test', 'factories'), Rails.root.join('spec', 'factories') ] end config.after_initialize do FactoryGirl.find_definitions if defined?(Spring) Spring.after_fork { FactoryGirl.reload } end end end end
Version data entries
15 entries across 15 versions & 6 rubygems