Include test coverage on generated arch net config command

This commit is contained in:
Chris Roberts 2017-02-09 17:41:44 -08:00
parent 0c307476fa
commit 0627e33652
1 changed files with 5 additions and 0 deletions

View File

@ -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