Permalink
Browse files

Ignore block device test.

  • Loading branch information...
1 parent 5aea289 commit ba03ced429cf95fb713a714f7fa3870a1fd94916 @voxik voxik committed Sep 24, 2012
Showing with 10 additions and 6 deletions.
  1. +5 −3 spec/ruby/core/file/ftype_spec.rb
  2. +5 −3 spec/ruby/core/file/stat/ftype_spec.rb
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

0 comments on commit ba03ced

Please sign in to comment.