summaryrefslogtreecommitdiff
path: root/spec/ruby/shared/file/zero.rb
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-01 15:41:50 +0000
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-01 15:41:50 +0000
commit4d7b0b9112f2adf9e87ef75056f930bf7c1f3dc4 (patch)
tree8d712e18a619a9720d181d0d44e8cc2474ff31ee /spec/ruby/shared/file/zero.rb
parent821d9a2d30f2e0d3f9009dc001b4b49aaa63c66e (diff)
Update to ruby/spec@bacedc5
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/ruby/shared/file/zero.rb')
-rw-r--r--spec/ruby/shared/file/zero.rb14
1 files changed, 3 insertions, 11 deletions
diff --git a/spec/ruby/shared/file/zero.rb b/spec/ruby/shared/file/zero.rb
index bb5eea57ad..cf014d4722 100644
--- a/spec/ruby/shared/file/zero.rb
+++ b/spec/ruby/shared/file/zero.rb
@@ -55,17 +55,9 @@ describe :file_zero, shared: true do
end
end
- platform_is_not :windows do
- it "returns false for a directory" do
- @object.send(@method, @dir).should == false
- end
- end
-
- platform_is :windows do
- # see http://redmine.ruby-lang.org/issues/show/449 for background
- it "returns true for a directory" do
- @object.send(@method, @dir).should == true
- end
+ # See https://bugs.ruby-lang.org/issues/449 for background
+ it "returns true or false for a directory" do
+ @object.send(@method, @dir).should be_true_or_false
end
end