Skip to content

Commit

Permalink
more lax pubsub.rb message equality test
Browse files Browse the repository at this point in the history
  • Loading branch information
slact committed Nov 29, 2017
1 parent a0ebe16 commit 2487fb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev/pubsub.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def length
self.to_s.length
end
def ==(msg)
@message == msg.message
@message == (msg.respond_to?(:message) ? msg.message : msg)
end

def self.each_multipart_message(content_type, body)
Expand Down

0 comments on commit 2487fb1

Please sign in to comment.