Sha256: 5a983032de19410150b5ab54302564f075d9c2231b76f9c2d13e872199b9f21c
Contents?: true
Size: 862 Bytes
Versions: 33
Compression:
Stored size: 862 Bytes
Contents
require 'rails' module MetasploitDataModels class Engine < Rails::Engine # @see http://viget.com/extend/rails-engine-testing-with-rspec-capybara-and-factorygirl config.generators do |g| g.assets false g.fixture_replacement :factory_girl, :dir => 'spec/factories' g.helper false g.test_framework :rspec, :fixture => false end config.paths.add 'lib', autoload: true initializer 'metasploit_data_models.prepend_factory_path', :after => 'factory_girl.set_factory_paths' do if defined? FactoryGirl relative_definition_file_path = config.generators.options[:factory_girl][:dir] definition_file_path = root.join(relative_definition_file_path) # unshift so that Pro can modify mdm factories FactoryGirl.definition_file_paths.unshift definition_file_path end end end end
Version data entries
33 entries across 33 versions & 1 rubygems