diff options
author | danielsdeleo <dan@opscode.com> | 2013-01-04 15:11:49 -0800 |
---|---|---|
committer | danielsdeleo <dan@opscode.com> | 2013-01-04 15:11:49 -0800 |
commit | 73e81664850d1de453d7d0759b5d51d5a8a762ec (patch) | |
tree | 1ceeb07cf3de1bf453b03be0c630b9f9cc6a7547 /spec/functional | |
parent | e6b0e88769596b52b47c0201fe0caa3d7eb9f685 (diff) | |
download | chef-73e81664850d1de453d7d0759b5d51d5a8a762ec.tar.gz |
Compute expected remote file mode from tempfile
Diffstat (limited to 'spec/functional')
-rw-r--r-- | spec/functional/resource/remote_file_spec.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/functional/resource/remote_file_spec.rb b/spec/functional/resource/remote_file_spec.rb index 619283d632..4a8b683f1b 100644 --- a/spec/functional/resource/remote_file_spec.rb +++ b/spec/functional/resource/remote_file_spec.rb @@ -45,7 +45,12 @@ describe Chef::Resource::RemoteFile do create_resource end - let(:default_mode) { "600" } + let(:default_mode) do + t = Tempfile.new("get-the-mode") + m = t.stat.mode + t.close + (07777 & m).to_s(8) + end before(:all) do @server = TinyServer::Manager.new |