From 8eca8fe7bd29e7cd4947d9709081e71660ec6438 Mon Sep 17 00:00:00 2001 From: Matt Brictson Date: Sat, 8 Jan 2022 12:52:15 -0800 Subject: [PATCH] Fix warnings and errors in cucumber feature tests (#2095) * Fix failing apt-get due to unsupported Ubuntu ver * Fix Gemfile warning due to missing source line --- spec/support/Vagrantfile | 2 +- spec/support/test_app.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/support/Vagrantfile b/spec/support/Vagrantfile index 74b44145..9af662a5 100644 --- a/spec/support/Vagrantfile +++ b/spec/support/Vagrantfile @@ -6,7 +6,7 @@ Vagrant.configure("2") do |config| [:app].each_with_index do |role, i| config.vm.define(role, primary: true) do |primary| primary.vm.define role - primary.vm.box = "hashicorp/precise64" + primary.vm.box = "hashicorp/bionic64" primary.vm.network "forwarded_port", guest: 22, host: "222#{i}".to_i primary.vm.provision :shell, inline: "sudo apt-get -y install git-core" diff --git a/spec/support/test_app.rb b/spec/support/test_app.rb index 4010c647..726ffd27 100644 --- a/spec/support/test_app.rb +++ b/spec/support/test_app.rb @@ -40,6 +40,7 @@ module TestApp FileUtils.mkdir(test_app_path) File.open(gemfile, "w+") do |file| + file.write "source 'https://rubygems.org'\n" file.write "gem 'capistrano', path: '#{path_to_cap}'" end