mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@cc7b9e5
This commit is contained in:
parent
4ec32f869f
commit
da05c1552e
2 changed files with 4 additions and 9 deletions
|
@ -1,7 +1,7 @@
|
|||
require_relative '../../spec_helper'
|
||||
|
||||
describe "File.lchmod" do
|
||||
platform_is_not :linux, :windows, :openbsd, :solaris, :aix do
|
||||
guard -> { File.respond_to?(:lchmod) } do
|
||||
before :each do
|
||||
@fname = tmp('file_chmod_test')
|
||||
@lname = @fname + '.lnk'
|
||||
|
@ -30,13 +30,9 @@ describe "File.lchmod" do
|
|||
end
|
||||
end
|
||||
|
||||
platform_is :linux, :openbsd, :aix do
|
||||
it "returns false from #respond_to?" do
|
||||
File.respond_to?(:lchmod).should be_false
|
||||
end
|
||||
|
||||
guard_not -> { File.respond_to?(:lchmod) } do
|
||||
it "raises a NotImplementedError when called" do
|
||||
-> { File.lchmod 0 }.should raise_error(NotImplementedError)
|
||||
-> { File.lchmod 0, "foo" }.should raise_error(NotImplementedError)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue