Sha256: 9b24fa97fa7c6465678f1966d182cde15d68264cc88b5116244039983aced6fc
Contents?: true
Size: 799 Bytes
Versions: 30
Compression:
Stored size: 799 Bytes
Contents
# frozen_string_literal: true module PubSubModelSync class MockRabbitService class MockTopic def publish(*_args) true end end class MockQueue def bind(*_args) true end def subscribe(*_args) true end def name 'name' end def publish(*_args) true end end class MockChannel def queue(*_args) @queue ||= MockQueue.new end alias fanout queue def topic(*_args) @topic ||= MockTopic.new end def close true end end def create_channel(*_args) @create_channel ||= MockChannel.new end alias channel create_channel def start true end def close true end end end
Version data entries
30 entries across 30 versions & 1 rubygems