spec/spec_helper.rb in distribution-0.6.0 vs spec/spec_helper.rb in distribution-0.7.0
- old
+ new
@@ -18,6 +18,17 @@
else
pending("Requires GSL")
end
end
end
+
+ def it_only_with_java(name,&block)
+ it(name) do
+ if Distribution.has_java?
+ instance_eval(&block)
+ else
+ pending("Requires Java")
+ end
+ end
+ end
+
end