Skip to content

Commit

Permalink
wow look more stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
sambostock committed Nov 17, 2023
1 parent f63d656 commit c2b17ea
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions test/unit/iteration_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -219,24 +219,18 @@ def foo
end

UnserializableCursor = Class.new
SerializableCursor = Class.new

class SerializableCursorSerializer < ActiveJob::Serializers::ObjectSerializer
def serialize(_)
super({})
end
class SerializableCursor
include GlobalID::Identification

def deserialize(_)
klass.new
def id
'singleton'
end

private

def klass
SerializableCursor
def self.find(_id)
new
end
end
ActiveJob::Serializers.add_serializers(SerializableCursorSerializer)

def test_jobs_using_unserializable_cursor_will_raise
skip_until_version("2.0.0")
Expand Down

0 comments on commit c2b17ea

Please sign in to comment.