diff options
Diffstat (limited to 'spec/ruby/shared/file')
-rw-r--r-- | spec/ruby/shared/file/grpowned.rb | 3 | ||||
-rw-r--r-- | spec/ruby/shared/file/world_readable.rb | 2 | ||||
-rw-r--r-- | spec/ruby/shared/file/world_writable.rb | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/spec/ruby/shared/file/grpowned.rb b/spec/ruby/shared/file/grpowned.rb index 91a6483030..24e84c28e3 100644 --- a/spec/ruby/shared/file/grpowned.rb +++ b/spec/ruby/shared/file/grpowned.rb @@ -26,8 +26,7 @@ describe :file_grpowned, shared: true do @object.send(@method, @file).should == true else - # No supplementary groups - 1.should == 1 + skip "No supplementary groups" end end end diff --git a/spec/ruby/shared/file/world_readable.rb b/spec/ruby/shared/file/world_readable.rb index 0fd5a28397..85761e633f 100644 --- a/spec/ruby/shared/file/world_readable.rb +++ b/spec/ruby/shared/file/world_readable.rb @@ -37,7 +37,7 @@ describe :file_world_readable, shared: true do it "returns a Fixnum if the file is a directory and chmod 644" do dir = rand().to_s + '-ww' Dir.mkdir(dir) - Dir.exist?(dir).should be_true + Dir.should.exist?(dir) File.chmod(0644, dir) @object.world_readable?(dir).should be_an_instance_of(Fixnum) Dir.rmdir(dir) diff --git a/spec/ruby/shared/file/world_writable.rb b/spec/ruby/shared/file/world_writable.rb index da8af0bc2a..61b691bcb6 100644 --- a/spec/ruby/shared/file/world_writable.rb +++ b/spec/ruby/shared/file/world_writable.rb @@ -36,7 +36,7 @@ describe :file_world_writable, shared: true do it "returns a Fixnum if the file is a directory and chmod 777" do dir = rand().to_s + '-ww' Dir.mkdir(dir) - Dir.exist?(dir).should be_true + Dir.should.exist?(dir) File.chmod(0777, dir) @object.world_writable?(dir).should be_an_instance_of(Fixnum) Dir.rmdir(dir) |