Sha256: b34960403632492571e880d2cf581840978a79952ac1168fd78e197be46755df

Contents?: true

Size: 584 Bytes

Versions: 9

Compression:

Stored size: 584 Bytes

Contents

module LiteConstraints
  # Constrain tests that use TimeoutInterrupt to MRI (and Unix)
  def only_mri
    before do
      unless SpecConfig.instance.mri?
        skip "MRI 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
    before do
      unless SpecConfig.instance.mri?
        skip "Fails on jruby"
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/mongoid-7.1.7/spec/support/lite_constraints.rb
mongoid-7.1.7 spec/support/lite_constraints.rb
mongoid-7.1.6 spec/support/lite_constraints.rb
mongoid-7.1.5 spec/support/lite_constraints.rb
mongoid-7.2.0.rc1 spec/support/lite_constraints.rb
mongoid-7.1.4 spec/support/lite_constraints.rb
mongoid-7.1.2 spec/support/lite_constraints.rb
mongoid-7.1.1 spec/support/lite_constraints.rb
mongoid-7.1.0 spec/support/lite_constraints.rb