Fixed issues when running tests on fresh clone

- Added the `rdoc` gem to the test group.
- Created `tmp` directory if one doesn't exist to store testing beef
configuration.
This commit is contained in:
Ben Passmore
2018-09-22 14:45:17 +10:00
parent a244a02263
commit 888e0f838b
2 changed files with 2 additions and 0 deletions

View File

@@ -86,6 +86,7 @@ group :test do
gem 'test-unit'
gem 'test-unit-full'
gem 'rspec'
gem 'rdoc'
# curb gem requires curl libraries
# sudo apt-get install libcurl4-openssl-dev
gem 'curb'

View File

@@ -156,6 +156,7 @@ task :beef_start => 'beef' do
config = YAML.load(File.read('./config.yaml'))
config['beef']['credentials']['user'] = test_user
config['beef']['credentials']['passwd'] = test_pass
Dir.mkdir('tmp') unless Dir.exists?('tmp')
File.open(@beef_config_file, 'w') { |f| YAML.dump(config, f) }
# set the environment creds -- in case we're using bad_fred