From ccbdcd46d0074e911da3b94562829adeec2ca9c0 Mon Sep 17 00:00:00 2001 From: sophia Date: Wed, 10 Feb 2021 11:33:33 -0600 Subject: [PATCH 1/2] Fix minimal Vagrantfile test A minimal Vagrantfile may set the vi mode for ruby --- test/unit/plugins/commands/init/command_test.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/test/unit/plugins/commands/init/command_test.rb b/test/unit/plugins/commands/init/command_test.rb index 34da3cd77..6bb86fa83 100644 --- a/test/unit/plugins/commands/init/command_test.rb +++ b/test/unit/plugins/commands/init/command_test.rb @@ -33,7 +33,6 @@ describe VagrantPlugins::CommandInit::Command do it "creates a minimal Vagrantfile" do described_class.new(["-m"], env).execute contents = File.read(vagrantfile_path) - expect(contents).to_not match(/#/) expect(contents).to_not match(/provision/) end From d9b3bebf672c7523b8953fb38c5ab11354d335cb Mon Sep 17 00:00:00 2001 From: sophia Date: Fri, 19 Feb 2021 09:42:37 -0600 Subject: [PATCH 2/2] Make tests run on changes to templates --- .github/workflows/testing.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index dd7a6e342..d14075834 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -8,6 +8,7 @@ on: - 'lib/**' - 'plugins/**' - 'test/**' + - 'templates/**' - 'Gemfile' - 'vagrant.gemspec' - 'Rakefile' @@ -20,6 +21,7 @@ on: - 'plugins/**' - 'test/**' - 'Gemfile' + - 'templates/**' - 'vagrant.gemspec' - 'Rakefile'