From 0627e33652a2b7692da55c19d50c0f4ecd07fc59 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Thu, 9 Feb 2017 17:41:44 -0800 Subject: [PATCH] Include test coverage on generated arch net config command --- test/unit/plugins/guests/arch/cap/configure_networks_test.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/unit/plugins/guests/arch/cap/configure_networks_test.rb b/test/unit/plugins/guests/arch/cap/configure_networks_test.rb index bab7a7cb3..df54edb6b 100644 --- a/test/unit/plugins/guests/arch/cap/configure_networks_test.rb +++ b/test/unit/plugins/guests/arch/cap/configure_networks_test.rb @@ -56,5 +56,10 @@ describe "VagrantPlugins::GuestArch::Cap::ConfigureNetworks" do expect(comm.received_commands[0]).to match(/netctl restart 'eth2'/) expect(comm.received_commands[0]).to match(/netctl enable 'eth2'/) end + + it "should not extraneous && joiners" do + cap.configure_networks(machine, [network_1, network_2]) + expect(comm.received_commands[0]).not_to match(/^\s*&&\s*$/) + end end end