Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1898 from voxik/ignore-block-device-test

Ignore block device test.
  • Loading branch information...
commit 20e243d2ce98328e99de6dbbe7f52b599cc45547 2 parents 1eebc60 + ba03ced
@brixen brixen authored
View
8 spec/ruby/core/file/ftype_spec.rb
@@ -32,9 +32,11 @@
# Both FreeBSD and Windows does not have block devices
platform_is_not :freebsd, :windows do
- it "returns 'blockSpecial' when the file is a block" do
- FileSpecs.block_device do |block|
- File.ftype(block).should == 'blockSpecial'
+ with_block_device do
+ it "returns 'blockSpecial' when the file is a block" do
+ FileSpecs.block_device do |block|
+ File.ftype(block).should == 'blockSpecial'
+ end
end
end
end
View
8 spec/ruby/core/file/stat/ftype_spec.rb
@@ -27,9 +27,11 @@
end
platform_is_not :freebsd do # FreeBSD does not have block devices
- it "returns 'blockSpecial' when the file is a block" do
- FileSpecs.block_device do |block|
- File.lstat(block).ftype.should == 'blockSpecial'
+ with_block_device do
+ it "returns 'blockSpecial' when the file is a block" do
+ FileSpecs.block_device do |block|
+ File.lstat(block).ftype.should == 'blockSpecial'
+ end
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.