From 888e0f838b0564f5967e3a496112158cb9655d6a Mon Sep 17 00:00:00 2001 From: Ben Passmore Date: Sat, 22 Sep 2018 14:45:17 +1000 Subject: [PATCH] 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. --- Gemfile | 1 + Rakefile | 1 + 2 files changed, 2 insertions(+) diff --git a/Gemfile b/Gemfile index da13e1fb8..2ae9b1c03 100644 --- a/Gemfile +++ b/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' diff --git a/Rakefile b/Rakefile index 7bf8ab2af..b723c1d09 100644 --- a/Rakefile +++ b/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