test/subscriber_test.rb in propono-0.3.0 vs test/subscriber_test.rb in propono-0.4.0
- old
+ new
@@ -2,19 +2,19 @@
module Propono
class SubscriberTest < Minitest::Test
def test_subscribe_by_queue_calls_queue_subscriber
- subscriber = QueueSubscriber.new("topic")
- QueueSubscriber.expects(:new).with("topic").returns(subscriber)
- QueueSubscriber.any_instance.expects(:subscribe)
+ 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 = PostSubscriber.new("topic", 'endpoint')
- PostSubscriber.expects(:new).with("topic", 'endpoint').returns(subscriber)
- PostSubscriber.any_instance.expects(: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