summaryrefslogtreecommitdiff
path: root/spec/unit/util
diff options
context:
space:
mode:
authorAdam Edwards <adamed@opscode.com>2014-08-28 06:10:48 -0700
committerJay Mundrawala <jdmundrawala@gmail.com>2014-09-19 12:47:32 -0700
commit82f957acf2e17eeeb6415f804f082a5beb6b0d3d (patch)
treefa340019ae4dd40ff04479963816ff2dd6245833 /spec/unit/util
parentd3f113b42eb96582752c3141ac2054dc2c407374 (diff)
downloadchef-82f957acf2e17eeeb6415f804f082a5beb6b0d3d.tar.gz
DSC: Added test for dsc_script provider
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 1d4ffd7572..1c6c57ac57 100644
--- a/spec/unit/util/dsc/configuration_generator_spec.rb
+++ b/spec/unit/util/dsc/configuration_generator_spec.rb
@@ -1,5 +1,5 @@
#
-# Author:: Bryan McLellan <btm@loftninjas.org>
+# Author:: Jay Mundrawala <jmundrawala@getchef.com>
# Copyright:: Copyright (c) 2014 Chef Software, Inc.
# License:: Apache License, Version 2.0
#
@@ -163,7 +163,7 @@ describe Chef::Util::DSC::ConfigurationGenerator do
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*archive\s*\{\s*\}\s*\}\s*/
+ if command.downcase =~ /\s*configuration\s+'hello'\s*\{\s*node\s+'localhost'\s*\{\s*archive\s*\{\s*\}\s*\}\s*\}\s*/
found_configuration = true
end
end