Spec test for domain template to verify rendering

Add basic spec tests for the domain template to test rendering through
simple wrapping of a config object to provide values for class instance
variables used by the template as it mostly mirrors those required.
This commit is contained in:
Darragh Bailey
2016-11-24 17:54:15 +00:00
parent 255146ec41
commit 81a35c9f14
5 changed files with 241 additions and 1 deletions

View File

@@ -24,5 +24,7 @@ shared_context "libvirt" do
# return some information for domain when needed
allow(domain).to receive(:mac).and_return("9C:D5:53:F1:5A:E7")
machine.stub(:id => id)
end
end