Sha256: 6de324d0460a00c46a19af858eca585fcf2598669c38216baea74deeaa7d8ea2

Contents?: true

Size: 544 Bytes

Versions: 2

Compression:

Stored size: 544 Bytes

Contents

begin
  require 'rails'
rescue LoadError => error
  warn "rails could not be loaded, so Metasploit::Concern::Engine will not be defined: #{error}"
else
  module Metasploit
    module Concern
      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.helper false
          g.test_framework :rspec, fixture: false
        end

        isolate_namespace Metasploit::Concern
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
metasploit-concern-0.0.4 lib/metasploit/concern/engine.rb
metasploit-concern-0.0.2 lib/metasploit/concern/engine.rb