Sha256: a072e4bd85da20cb0a59619c3bbcafd1a8a365b79eea18405387aa7094d73956
Contents?: true
Size: 724 Bytes
Versions: 8
Compression:
Stored size: 724 Bytes
Contents
require File.expand_path('../test_helper', __FILE__) module Propono class PostSubscriptionTest < Minitest::Test def test_create_topic topic = 'foobar' TopicCreator.expects(:find_or_create).with(topic) PostSubscription.create(topic, "foobar") end def test_create_calls_create arn = "arn123" endpoint = "http://meducation.net/some_queue_name" TopicCreator.stubs(find_or_create: arn) sns = mock() sns.expects(:subscribe).with(arn, endpoint, 'http') subscription = PostSubscription.new("Some topic", endpoint) subscription.stubs(sns: sns) subscription.create end def test_it_correctly_uses_http_and_https skip end end end
Version data entries
8 entries across 8 versions & 1 rubygems