test/queue_subscription_test.rb in propono-0.5.5 vs test/queue_subscription_test.rb in propono-0.5.6
- old
+ new
@@ -62,19 +62,23 @@
sqs = mock()
sqs.expects(:set_queue_attributes).with(Fog::AWS::SQS::Mock::QueueUrl, "Policy", policy)
subscription = QueueSubscription.new("Some topic")
subscription.stubs(sqs: sqs)
- subscription.stubs(policy: policy)
+ subscription.stubs(generate_policy: policy)
subscription.create
end
def test_create_saves_queue
queue = Queue.new(Fog::AWS::SQS::Mock::QueueUrl)
QueueCreator.expects(:find_or_create).returns(queue)
subscription = QueueSubscription.new("Some Topic")
subscription.create
assert_equal queue, subscription.queue
+ end
+
+ def test_generate_policy
+ skip"TODO - Implement this test."
end
end
end