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

XMLWordPrintableJSON

    • Type: Build Failure
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Tests
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
              Reporter:
              Jamis Buck
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: