We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7022325 commit 20cfd07Copy full SHA for 20cfd07
spec/ruby/shared/file/grpowned.rb
@@ -21,9 +21,14 @@
21
it 'takes non primary groups into account' do
22
group = (Process.groups - [Process.egid]).first
23
24
- File.chown(nil, group, @file)
+ if group
25
+ File.chown(nil, group, @file)
26
- @object.send(@method, @file).should == true
27
+ @object.send(@method, @file).should == true
28
+ else
29
+ # No supplementary groups
30
+ 1.should == 1
31
+ end
32
end
33
34
0 commit comments