Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-5710

"uninitialized constant ActiveJob::Serializers" when testing against Rails 5.2

    • Type: Icon: Build Failure Build Failure
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Tests
    • None

      Testing against Rails 5.2 has been broken for a while now, because of this:

      Failure/Error:
              class BsonObjectIdSerializer < ActiveJob::Serializers::ObjectSerializer
                #  Returns whether the argument can be serialized by this serializer.
                #
                #  @param [ Object ] argument The argument to check.
                #
                #  @return [ true | false ] Whether the argument can be serialized.
                def serialize?(argument)
                  argument.is_a?(BSON::ObjectId)
                end
        
      NameError:
        uninitialized constant ActiveJob::Serializers
        Did you mean?  Series
      

      The ActiveJob::Serializers API wasn't added until Rails 6. We either need to shim something in so that this works on Rails 5.2, or retire our support for Rails 5.x.

            Assignee:
            dmitry.rybakov@mongodb.com Dmitry Rybakov
            Reporter:
            jamis.buck@mongodb.com Jamis Buck
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: