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:
eregon 2018-01-25 09:50:41 +00:00
Родитель 7dc0bdb6e5
Коммит b101d2c2b1
1 изменённых файлов: 9 добавлений и 9 удалений

Просмотреть файл

@ -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