spec/support/lite_constraints.rb in mongo-2.11.3 vs spec/support/lite_constraints.rb in mongo-2.11.4
- old
+ new
@@ -6,9 +6,17 @@
skip "MRI required, we have #{SpecConfig.instance.platform}"
end
end
end
+ def require_jruby
+ before(:all) do
+ unless BSON::Environment.jruby?
+ skip "JRuby required, we have #{SpecConfig.instance.platform}"
+ end
+ end
+ end
+
# This is for marking tests that fail on jruby that should
# in principle work (as opposed to being fundamentally incompatible
# with jruby).
# Often times these failures happen only in Evergreen.
def fails_on_jruby(version=nil)