Missing necessary requires?

This commit is contained in:
Jack Walker
2020-04-23 12:53:09 +10:00
parent 0fbb46d721
commit 539a17bbee
4 changed files with 14 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ require_relative '../../../../support/constants'
require_relative '../../../../support/beef_test'
RSpec.describe 'AutoRunEngine test', :run_on_browserstack => true do
ENV['name'] = self.metadata[:file_path].split('/').last.split('.').first
before(:all) do
@config = BeEF::Core::Configuration.instance

View File

@@ -10,6 +10,8 @@ require_relative '../../../../support/constants'
require_relative '../../../../support/beef_test'
RSpec.describe 'Browser details handler', :run_on_browserstack => true do
ENV['name'] = self.metadata[:file_path].split('/').last.split('.').first
before(:all) do
@config = BeEF::Core::Configuration.instance
@config.set('beef.credentials.user', "beef")

View File

@@ -1,9 +1,19 @@
# encoding: UTF-8
#
# Copyright (c) 2006-2020 Wade Alcorn - wade@bindshell.net
# Browser Exploitation Framework (BeEF) - http://beefproject.com
# See the file 'doc/COPYING' for copying permission
#
require 'rest-client'
require 'json'
require_relative '../../../../support/constants'
require_relative '../../../../support/beef_test'
require 'core/main/network_stack/websocket/websocket'
require 'websocket-client-simple'
RSpec.describe 'BeEF WebSockets enabled', :run_on_browserstack => true do
ENV['name'] = self.metadata[:file_path].split('/').last.split('.').first
before(:all) do
@config = BeEF::Core::Configuration.instance

View File

@@ -10,6 +10,7 @@ require_relative '../../../support/constants'
require_relative '../../../support/beef_test'
RSpec.describe 'BeEF Debug Command Modules:', :run_on_browserstack => true do
ENV['name'] = self.metadata[:file_path].split('/').last.split('.').first
before(:all) do
# Grab config and set creds in variables for ease of access