summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/support/shared/functional/securable_resource.rb30
1 files changed, 15 insertions, 15 deletions
diff --git a/spec/support/shared/functional/securable_resource.rb b/spec/support/shared/functional/securable_resource.rb
index 2af6ef3a67..cd8c2a166b 100644
--- a/spec/support/shared/functional/securable_resource.rb
+++ b/spec/support/shared/functional/securable_resource.rb
@@ -233,21 +233,21 @@ shared_examples_for "a securable resource with existing target" do
end
describe "when setting the suid bit", :requires_root do
- before do
- @suid_mode = 04776
- resource.mode @suid_mode
- resource.run_action(:create)
- end
-
- it "should set the suid bit" do
- expect(File.lstat(path).mode & 007777).to eq(@suid_mode & 007777)
- end
-
- it "should retain the suid bit when updating the user" do
- resource.user 1338
- resource.run_action(:create)
- expect(File.lstat(path).mode & 007777).to eq(@suid_mode & 007777)
- end
+ before do
+ @suid_mode = 04776
+ resource.mode @suid_mode
+ resource.run_action(:create)
+ end
+
+ it "should set the suid bit" do
+ expect(File.lstat(path).mode & 007777).to eq(@suid_mode & 007777)
+ end
+
+ it "should retain the suid bit when updating the user" do
+ resource.user 1338
+ resource.run_action(:create)
+ expect(File.lstat(path).mode & 007777).to eq(@suid_mode & 007777)
+ end
end
end