From fcaed64df995cd1b65e00f773e6d4e20101c48d4 Mon Sep 17 00:00:00 2001 From: Darragh Bailey Date: Mon, 29 May 2017 14:01:11 +0100 Subject: [PATCH] Fix failing domain tests due to missing property Changes in names of data being passed through from the config object to the CreateDomain action means that to test the domain xml template, need to add an additional variable of qargs when testing. --- spec/unit/templates/domain_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/unit/templates/domain_spec.rb b/spec/unit/templates/domain_spec.rb index 9e1fca6..a96cba9 100644 --- a/spec/unit/templates/domain_spec.rb +++ b/spec/unit/templates/domain_spec.rb @@ -8,6 +8,11 @@ describe 'templates/domain' do class DomainTemplateHelper < VagrantPlugins::ProviderLibvirt::Config include VagrantPlugins::ProviderLibvirt::Util::ErbTemplate + + def finalize! + super + @qargs = @qemu_args + end end let(:domain) { DomainTemplateHelper.new }