summaryrefslogtreecommitdiff
path: root/spec/unit/util
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2015-01-20 11:28:12 -0800
committerJay Mundrawala <jdmundrawala@gmail.com>2015-01-20 11:33:58 -0800
commit3b1df86ecf403071b94e1ce3cb06ec28f106f179 (patch)
treecb89e3e9203597c9d4167a94f244f89b4104ee33 /spec/unit/util
parent947ca116dd23cea2023cb9def5fd068e4220a2e5 (diff)
downloadchef-3b1df86ecf403071b94e1ce3cb06ec28f106f179.tar.gz
Make specs pass with changes for allowing dsc resource imports
Diffstat (limited to 'spec/unit/util')
-rw-r--r--spec/unit/util/dsc/configuration_generator_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/util/dsc/configuration_generator_spec.rb b/spec/unit/util/dsc/configuration_generator_spec.rb
index e75e285d43..cfcdb24093 100644
--- a/spec/unit/util/dsc/configuration_generator_spec.rb
+++ b/spec/unit/util/dsc/configuration_generator_spec.rb
@@ -130,7 +130,7 @@ describe Chef::Util::DSC::ConfigurationGenerator do
[a,b].join("++")
end
allow(file_like_object).to receive(:write)
- conf_man.send(:write_document_generation_script, 'file', 'hello')
+ conf_man.send(:write_document_generation_script, 'file', 'hello', {})
expect(file_like_object).to have_received(:write)
end
end
@@ -158,7 +158,7 @@ describe Chef::Util::DSC::ConfigurationGenerator do
describe "#configuration_code" do
it "should build dsc" do
- dsc = conf_man.send(:configuration_code, 'archive{}', 'hello')
+ dsc = conf_man.send(:configuration_code, 'archive{}', 'hello', {})
found_configuration = false
dsc.split(';').each do |command|
if command.downcase =~ /\s*configuration\s+'hello'\s*\{\s*node\s+'localhost'\s*\{\s*archive\s*\{\s*\}\s*\}\s*\}\s*/