mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
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
This commit is contained in:
parent
f5a16779a7
commit
8eca8fe7bd
2 changed files with 2 additions and 1 deletions
2
spec/support/Vagrantfile
vendored
2
spec/support/Vagrantfile
vendored
|
@ -6,7 +6,7 @@ Vagrant.configure("2") do |config|
|
||||||
[:app].each_with_index do |role, i|
|
[:app].each_with_index do |role, i|
|
||||||
config.vm.define(role, primary: true) do |primary|
|
config.vm.define(role, primary: true) do |primary|
|
||||||
primary.vm.define role
|
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.network "forwarded_port", guest: 22, host: "222#{i}".to_i
|
||||||
primary.vm.provision :shell, inline: "sudo apt-get -y install git-core"
|
primary.vm.provision :shell, inline: "sudo apt-get -y install git-core"
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,7 @@ module TestApp
|
||||||
FileUtils.mkdir(test_app_path)
|
FileUtils.mkdir(test_app_path)
|
||||||
|
|
||||||
File.open(gemfile, "w+") do |file|
|
File.open(gemfile, "w+") do |file|
|
||||||
|
file.write "source 'https://rubygems.org'\n"
|
||||||
file.write "gem 'capistrano', path: '#{path_to_cap}'"
|
file.write "gem 'capistrano', path: '#{path_to_cap}'"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue