summaryrefslogtreecommitdiff
path: root/spec/functional
diff options
context:
space:
mode:
Diffstat (limited to 'spec/functional')
-rw-r--r--spec/functional/resource/remote_file_spec.rb7
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