test/components/topic_test.rb in propono-1.7.0 vs test/components/topic_test.rb in propono-2.0.0.rc1

- old
+ new

@@ -1,11 +1,13 @@ require File.expand_path('../../test_helper', __FILE__) module Propono class TopicTest < Minitest::Test - def test_intialization_sets_url + def test_arn arn = 'foobar' - topic = Topic.new(arn) + aws_topic = mock + aws_topic.expects(:topic_arn).returns(arn) + topic = Topic.new(aws_topic) assert arn, topic.arn end end end