summaryrefslogtreecommitdiff
path: root/spec/unit/resource/remote_directory_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/resource/remote_directory_spec.rb')
-rw-r--r--spec/unit/resource/remote_directory_spec.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/spec/unit/resource/remote_directory_spec.rb b/spec/unit/resource/remote_directory_spec.rb
index e4fa8fc4e3..d3800062ae 100644
--- a/spec/unit/resource/remote_directory_spec.rb
+++ b/spec/unit/resource/remote_directory_spec.rb
@@ -6,9 +6,9 @@
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
-#
+#
# http://www.apache.org/licenses/LICENSE-2.0
-#
+#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -22,7 +22,7 @@ describe Chef::Resource::RemoteDirectory do
before(:each) do
@resource = Chef::Resource::RemoteDirectory.new("/etc/dunk")
- end
+ end
it "should create a new Chef::Resource::RemoteDirectory" do
@resource.should be_a_kind_of(Chef::Resource)
@@ -46,35 +46,35 @@ describe Chef::Resource::RemoteDirectory do
@resource.files_backup 1
@resource.files_backup.should eql(1)
end
-
+
it "should accept false for the remote files backup" do
@resource.files_backup false
@resource.files_backup.should eql(false)
end
-
+
it "should accept 3 or 4 digets for the files_mode" do
@resource.files_mode 100
@resource.files_mode.should eql(100)
@resource.files_mode 1000
@resource.files_mode.should eql(1000)
end
-
+
it "should accept a string or number for the files group" do
@resource.files_group "heart"
@resource.files_group.should eql("heart")
@resource.files_group 1000
@resource.files_group.should eql(1000)
end
-
+
it "should accept a string or number for the files owner" do
@resource.files_owner "heart"
@resource.files_owner.should eql("heart")
@resource.files_owner 1000
@resource.files_owner.should eql(1000)
end
-
+
describe "when it has cookbook, files owner, files mode, and source" do
- before do
+ before do
@resource.path("/var/path/")
@resource.cookbook("pokemon.rb")
@resource.files_owner("root")