Skip to content
Browse files

Merge branch 'master' of github.com:rubinius/rubinius

  • Loading branch information...
2 parents ec8d671 + 20e243d commit 2279857e13872eb04ac461f94ebfe77b7cca5fc0 @brixen brixen committed Oct 3, 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 2279857

Please sign in to comment.
Something went wrong with that request. Please try again.