Sha256: 6075a89089677cf97a825a2fbf9374e4b29e18b66ced05d57018394a75a3ddb8

Contents?: true

Size: 458 Bytes

Versions: 13

Compression:

Stored size: 458 Bytes

Contents

Shindo.tests("Fog::Google[:pubsub] | topic model", ["google"]) do
  @connection = Fog::Google[:pubsub]
  @topics = @connection.topics

  tests("success") do
    tests('#create').succeeds do
      @topic = @topics.create(:name => "projects/#{@connection.project}/topics/#{Fog::Mock.random_letters(16)}")
    end

    tests('#publish').succeeds do
      @topic.publish(["foo"])
    end

    tests('#destroy').succeeds do
      @topic.destroy
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
fog-google-0.6.0 tests/models/pubsub/topic_tests.rb
fog-google-0.5.5 tests/models/pubsub/topic_tests.rb
fog-google-0.5.4 tests/models/pubsub/topic_tests.rb
fog-google-0.5.3 tests/models/pubsub/topic_tests.rb
fog-google-0.5.2 tests/models/pubsub/topic_tests.rb
fog-google-0.5.1 tests/models/pubsub/topic_tests.rb
fog-google-0.5.0 tests/models/pubsub/topic_tests.rb
fog-google-0.4.2 tests/models/pubsub/topic_tests.rb
fog-google-0.4.1 tests/models/pubsub/topic_tests.rb
fog-google-0.4.0 tests/models/pubsub/topic_tests.rb
fog-google-0.3.2 tests/models/pubsub/topic_tests.rb
fog-google-0.3.1 tests/models/pubsub/topic_tests.rb
fog-google-0.3.0 tests/models/pubsub/topic_tests.rb