зеркало из https://github.com/github/ruby.git
Group related File.umask specs together
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
7dc0bdb6e5
Коммит
b101d2c2b1
|
@ -30,15 +30,6 @@ describe "File.umask" do
|
|||
end
|
||||
end
|
||||
|
||||
it "raises RangeError with too large values" do
|
||||
-> { File.umask(2**64) }.should raise_error(RangeError)
|
||||
-> { File.umask(-2**63 - 1) }.should raise_error(RangeError)
|
||||
end
|
||||
|
||||
it "raises ArgumentError when more than one argument is provided" do
|
||||
lambda { File.umask(022, 022) }.should raise_error(ArgumentError)
|
||||
end
|
||||
|
||||
platform_is :windows do
|
||||
it "returns the current umask value for this process (basic)" do
|
||||
File.umask.should == 0
|
||||
|
@ -54,4 +45,13 @@ describe "File.umask" do
|
|||
File.umask.should == 0
|
||||
end
|
||||
end
|
||||
|
||||
it "raises RangeError with too large values" do
|
||||
-> { File.umask(2**64) }.should raise_error(RangeError)
|
||||
-> { File.umask(-2**63 - 1) }.should raise_error(RangeError)
|
||||
end
|
||||
|
||||
it "raises ArgumentError when more than one argument is provided" do
|
||||
lambda { File.umask(022, 022) }.should raise_error(ArgumentError)
|
||||
end
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче