summaryrefslogtreecommitdiff
path: root/spec/ruby/core/file/sticky_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/file/sticky_spec.rb')
-rw-r--r--spec/ruby/core/file/sticky_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/file/sticky_spec.rb b/spec/ruby/core/file/sticky_spec.rb
index 7805c39f79..782541abf3 100644
--- a/spec/ruby/core/file/sticky_spec.rb
+++ b/spec/ruby/core/file/sticky_spec.rb
@@ -35,13 +35,13 @@ describe "File.sticky?" do
end
platform_is :bsd do
- # FreeBSD and NetBSD can't set stiky bit to a normal file
+ # FreeBSD and NetBSD can't set sticky bit to a normal file
it "cannot set sticky bit to a normal file" do
filename = tmp("i_exist")
touch(filename)
stat = File.stat(filename)
mode = stat.mode
- raise_error(Errno::EFTYPE){File.chmod(mode|01000, filename)}
+ -> { File.chmod(mode|01000, filename) }.should.raise(Errno::EFTYPE)
File.sticky?(filename).should == false
rm_r filename