Converted unit tests, further work required
This commit is contained in:
29
spec/spec_helper.rb
Normal file
29
spec/spec_helper.rb
Normal file
@@ -0,0 +1,29 @@
|
||||
require 'core/loader.rb'
|
||||
|
||||
# Notes
|
||||
# We need to load vairables that 'beef' usually does for us
|
||||
## config
|
||||
config = BeEF::Core::Configuration.new('config.yaml')
|
||||
## home_dir
|
||||
$home_dir = Dir.pwd
|
||||
## root_dir
|
||||
$root_dir = Dir.pwd
|
||||
|
||||
require 'core/bootstrap.rb'
|
||||
require 'rack/test'
|
||||
require 'curb'
|
||||
|
||||
# Require supports
|
||||
Dir['spec/support/*.rb'].each do |f|
|
||||
require f
|
||||
end
|
||||
|
||||
ENV['RACK_ENV'] ||= 'test'
|
||||
|
||||
RSpec.configure do |config|
|
||||
config.disable_monkey_patching!
|
||||
config.include Rack::Test::Methods
|
||||
config.expect_with :rspec do |c|
|
||||
c.syntax = :expect
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user