diff options
Diffstat (limited to 'spec/ruby/core/file/stat/rdev_major_spec.rb')
-rw-r--r-- | spec/ruby/core/file/stat/rdev_major_spec.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/ruby/core/file/stat/rdev_major_spec.rb b/spec/ruby/core/file/stat/rdev_major_spec.rb index f8a8d1b107..3d7f6ef759 100644 --- a/spec/ruby/core/file/stat/rdev_major_spec.rb +++ b/spec/ruby/core/file/stat/rdev_major_spec.rb @@ -17,9 +17,11 @@ describe "File::Stat#rdev_major" do end end - platform_is_not :windows do - it "returns the major part of File::Stat#rdev" do - File.stat(@name).rdev_major.should be_kind_of(Integer) + ruby_version_is "2.4" do + platform_is_not :windows do + it "returns the major part of File::Stat#rdev" do + File.stat(@name).rdev_major.should be_kind_of(Integer) + end end end |