diff options
author | Bryan McLellan <btm@loftninjas.org> | 2013-06-04 16:54:46 -0400 |
---|---|---|
committer | Bryan McLellan <btm@loftninjas.org> | 2013-06-04 16:54:46 -0400 |
commit | 951c1c474a5dff509978ce40ec546cdecbc9115e (patch) | |
tree | e85670df88382941ee457df69f6880eac5e9f279 /spec/functional/resource/git_spec.rb | |
parent | 6300633dc42bedfc1d1aef58854b32676ac43237 (diff) | |
download | chef-951c1c474a5dff509978ce40ec546cdecbc9115e.tar.gz |
CHEF-4239: Handle specs run from dir with space
Diffstat (limited to 'spec/functional/resource/git_spec.rb')
-rw-r--r-- | spec/functional/resource/git_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/functional/resource/git_spec.rb b/spec/functional/resource/git_spec.rb index ff69bae19d..52699c700f 100644 --- a/spec/functional/resource/git_spec.rb +++ b/spec/functional/resource/git_spec.rb @@ -19,6 +19,7 @@ require 'spec_helper' require 'chef/mixin/shell_out' require 'tmpdir' +require 'shellwords' # Deploy relies heavily on symlinks, so it doesn't work on windows. describe Chef::Resource::Git do @@ -61,7 +62,7 @@ describe Chef::Resource::Git do before(:each) do @old_file_cache_path = Chef::Config[:file_cache_path] - shell_out!("git clone #{git_bundle_repo} example", :cwd => origin_repo_dir) + shell_out!("git clone \"#{git_bundle_repo}\" example", :cwd => origin_repo_dir) Chef::Config[:file_cache_path] = file_cache_path end |