diff options
author | Adam Edwards <adamed@opscode.com> | 2014-08-28 06:10:48 -0700 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2014-09-19 12:47:32 -0700 |
commit | 82f957acf2e17eeeb6415f804f082a5beb6b0d3d (patch) | |
tree | fa340019ae4dd40ff04479963816ff2dd6245833 /spec/unit/util | |
parent | d3f113b42eb96582752c3141ac2054dc2c407374 (diff) | |
download | chef-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.rb | 4 |
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 |