Sha256: 9fb91d1715c6f2d6feb8371d9a6abb915d6ef46f9fbb6acf08201e416e74b77a
Contents?: true
Size: 719 Bytes
Versions: 8
Compression:
Stored size: 719 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
8 entries across 8 versions & 1 rubygems