test/topic_creator_test.rb in propono-0.0.1 vs test/topic_creator_test.rb in propono-0.1.0

- old
+ new

@@ -13,21 +13,21 @@ creator.find_or_create end def test_returns_arn arn = "malcs_happy_arn" - create_topic_result = mock(body: { "TopicArn" => arn}) - sns = mock(create_topic: create_topic_result) + result = mock(body: { "TopicArn" => arn}) + sns = mock(create_topic: result) creator = TopicCreator.new("foobar") creator.stubs(sns: sns) assert_equal arn, creator.find_or_create end def test_should_raise_exception_if_no_arn_returned - create_topic_result = mock(body: {}) - sns = mock(create_topic: create_topic_result) + result = mock(body: {}) + sns = mock(create_topic: result) creator = TopicCreator.new("foobar") creator.stubs(sns: sns) assert_raises TopicCreatorError do