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:
1
Gemfile
1
Gemfile
@@ -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'
|
||||
|
||||
1
Rakefile
1
Rakefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user