Sha256: 096309af7c9d85bbaa29f3f89744e78e87414eeb72a59e3f65c0a487f4375f2a
Contents?: true
Size: 1.12 KB
Versions: 5
Compression:
Stored size: 1.12 KB
Contents
require 'rails' class MetasploitDataModels::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 # Remove ActiveSupport::Dependencies loading paths to save time during constant resolution and to ensure that # metasploit_data_models is properly declaring all autoloads and not falling back on ActiveSupport::Dependencies config.paths.each_value do |path| path.skip_autoload! path.skip_autoload_once! path.skip_eager_load! path.skip_load_path! end 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
Version data entries
5 entries across 5 versions & 1 rubygems