Skip to content

Commit e4f665f

Browse files
committed
Require 'active_record/railtie' for specs
MSP-10905
1 parent d7a0c1f commit e4f665f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spec/spec_helper.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33

44
require 'simplecov'
55

6+
# @note must be before loading config/environment because railtie needs to be loaded before
7+
# `Metasploit::Framework::Application.initialize!` is called.
8+
#
9+
# Must be explicit as activerecord is optional dependency
10+
require 'active_record/railtie'
11+
612
require File.expand_path('../../config/environment', __FILE__)
713

814
# Don't `require 'rspec/rails'` as it includes support for pieces of rails that metasploit-framework doesn't use

0 commit comments

Comments
 (0)