Skip to content

Commit

Permalink
Ignore block device test.
Browse files Browse the repository at this point in the history
  • Loading branch information
voxik committed Sep 24, 2012
1 parent 5aea289 commit ba03ced
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions spec/ruby/core/file/ftype_spec.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@


# Both FreeBSD and Windows does not have block devices # Both FreeBSD and Windows does not have block devices
platform_is_not :freebsd, :windows do platform_is_not :freebsd, :windows do
it "returns 'blockSpecial' when the file is a block" do with_block_device do
FileSpecs.block_device do |block| it "returns 'blockSpecial' when the file is a block" do
File.ftype(block).should == 'blockSpecial' FileSpecs.block_device do |block|
File.ftype(block).should == 'blockSpecial'
end
end end
end end
end end
Expand Down
8 changes: 5 additions & 3 deletions spec/ruby/core/file/stat/ftype_spec.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@
end end


platform_is_not :freebsd do # FreeBSD does not have block devices platform_is_not :freebsd do # FreeBSD does not have block devices
it "returns 'blockSpecial' when the file is a block" do with_block_device do
FileSpecs.block_device do |block| it "returns 'blockSpecial' when the file is a block" do
File.lstat(block).ftype.should == 'blockSpecial' FileSpecs.block_device do |block|
File.lstat(block).ftype.should == 'blockSpecial'
end
end end
end end
end end
Expand Down

0 comments on commit ba03ced

Please sign in to comment.