ruby-changes:49919
From: eregon <ko1@a...>
Date: Thu, 25 Jan 2018 18:50:44 +0900 (JST)
Subject: [ruby-changes:49919] eregon:r62037 (trunk): Group related File.umask specs together
eregon 2018-01-25 18:50:41 +0900 (Thu, 25 Jan 2018) New Revision: 62037 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62037 Log: Group related File.umask specs together Modified files: trunk/spec/ruby/core/file/umask_spec.rb Index: spec/ruby/core/file/umask_spec.rb =================================================================== --- spec/ruby/core/file/umask_spec.rb (revision 62036) +++ spec/ruby/core/file/umask_spec.rb (revision 62037) @@ -30,15 +30,6 @@ describe "File.umask" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/file/umask_spec.rb#L30 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 https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/file/umask_spec.rb#L45 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/