test/components/queue_subscription_test.rb in propono-1.4.0 vs test/components/queue_subscription_test.rb in propono-1.5.0
- old
+ new
@@ -29,10 +29,10 @@
TopicCreator.stubs(find_or_create: Topic.new("1123"))
queue_name = subscription.send(:queue_name)
- sqs = mock()
+ sqs = Fog::AWS::SQS::Mock.new
sqs.expects(:create_queue).with(queue_name).returns(mock(body: {'QueueUrl' => Fog::AWS::SQS::Mock::QueueUrl}))
sqs.expects(:create_queue).with(queue_name + '-failed').returns(mock(body: {'QueueUrl' => Fog::AWS::SQS::Mock::QueueUrl}))
sqs.expects(:create_queue).with(queue_name + '-corrupt').returns(mock(body: {'QueueUrl' => Fog::AWS::SQS::Mock::QueueUrl}))
sqs.expects(:create_queue).with(queue_name + '-slow').returns(mock(body: {'QueueUrl' => Fog::AWS::SQS::Mock::QueueUrl}))
QueueCreator.any_instance.stubs(sqs: sqs)