Sha256: 06e5d7bda233a43146686ff47742db7f8065c84beb14865b0fc991a97752d71c

Contents?: true

Size: 618 Bytes

Versions: 13

Compression:

Stored size: 618 Bytes

Contents

Shindo.tests("Fog::Google[:pubsub] | received_message model", ["google"]) do
  @connection = Fog::Google[:pubsub]
  @topic = @connection.topics.create(:name => "projects/#{@connection.project}/topics/#{Fog::Mock.random_letters(16)}")
  @subscription = @connection.subscriptions.create(
    :name  => "projects/#{@connection.project}/subscriptions/#{Fog::Mock.random_letters(16)}",
    :topic => @topic.name
  )

  tests("success") do
    tests('#acknowledge').returns(nil) do
      @topic.publish(["foo"])
      @subscription.pull[0].acknowledge
    end
  end
  # teardown
  @topic.destroy
  @subscription.destroy
end

Version data entries

13 entries across 13 versions & 1 rubygems

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