Sha256: 74765c0b7659b1d5bbde20cca64ae34034aa1cad570bfb1a3fb7d8979f40f1de
Contents?: true
Size: 722 Bytes
Versions: 11
Compression:
Stored size: 722 Bytes
Contents
require File.expand_path('../../test_helper', __FILE__) module Propono class SubscriberTest < Minitest::Test def test_subscribe_by_queue_calls_queue_subscriber subscriber = QueueSubscription.new("topic") QueueSubscription.expects(:new).with("topic").returns(subscriber) QueueSubscription.any_instance.expects(:create) Subscriber.subscribe_by_queue("topic") end def test_subscribe_by_post_calls_post_subscribe subscriber = PostSubscription.new("topic", 'endpoint') PostSubscription.expects(:new).with("topic", 'endpoint').returns(subscriber) PostSubscription.any_instance.expects(:create) Subscriber.subscribe_by_post("topic", "endpoint") end end end
Version data entries
11 entries across 11 versions & 1 rubygems