Sha256: ff25f4675f27787bdbff2bc7c54ba191da2b52a7c972da981323b8422e9b3b0f

Contents?: true

Size: 612 Bytes

Versions: 13

Compression:

Stored size: 612 Bytes

Contents

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

  tests("success") do
    tests('#all').succeeds do
      @topics.all
    end

    tests('#get').succeeds do
      @topics.get(@topic.name)
    end
  end

  @topic.destroy

  tests("failure") do
    tests('#all').returns([]) do
      @topics.all
    end

    tests('#get').returns(nil) do
      @topics.get(Fog::Mock.random_letters_and_numbers(16))
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

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