Sha256: 2117c230272abfe6f85adeb020d8c67aed7eee646c06ddc1be4daa4a787d0e25
Contents?: true
Size: 532 Bytes
Versions: 3
Compression:
Stored size: 532 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe SousChef::Resource::Execute do it "formats multiline commands that are wrapped in not_if" do execute = resource("clone sous_chef") do command <<-EOS git clone git://github.com/engineyard/sous_chef.git cd sous_chef gem bundle EOS not_if 'test -d sous_chef' end execute.to_script.should == %{ if ! test -d sous_chef; then git clone git://github.com/engineyard/sous_chef.git cd sous_chef gem bundle fi }.strip end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sous_chef-0.0.4 | spec/resource/execute_spec.rb |
sous_chef-0.0.3 | spec/resource/execute_spec.rb |
sous_chef-0.0.2 | spec/resource/execute_spec.rb |