From b101d2c2b189dde3fc61638124a5647e69a33ff6 Mon Sep 17 00:00:00 2001 From: eregon Date: Thu, 25 Jan 2018 09:50:41 +0000 Subject: [PATCH] Group related File.umask specs together git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- spec/ruby/core/file/umask_spec.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/spec/ruby/core/file/umask_spec.rb b/spec/ruby/core/file/umask_spec.rb index 4008cad449..f35357dd03 100644 --- a/spec/ruby/core/file/umask_spec.rb +++ b/spec/ruby/core/file/umask_spec.rb @@ -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