Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added with_feature guard for (non-existent) Kernel#fork specs.

  • Loading branch information...
commit f92b5a1b0cfd3e934f4c504b9b9b2bf221f861cc 1 parent 393db39
@brixen brixen authored
Showing with 8 additions and 6 deletions.
  1. +8 −6 core/kernel/fork_spec.rb
View
14 core/kernel/fork_spec.rb
@@ -1,12 +1,14 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require File.dirname(__FILE__) + '/fixtures/classes'
-describe "Kernel#fork" do
- it "is a private method" do
- Kernel.should have_private_instance_method(:fork)
+with_feature :fork do
+ describe "Kernel#fork" do
+ it "is a private method" do
+ Kernel.should have_private_instance_method(:fork)
+ end
end
-end
-describe "Kernel.fork" do
- it "needs to be reviewed for spec completeness"
+ describe "Kernel.fork" do
+ it "needs to be reviewed for spec completeness"
+ end
end
Please sign in to comment.
Something went wrong with that request. Please try again.