Sha256: d5ad936f021ef77a7b2e6340aaf083cc40876efe7076682ecf0ac9a1a447e07a

Contents?: true

Size: 637 Bytes

Versions: 30

Compression:

Stored size: 637 Bytes

Contents

require 'lite_spec_helper'

describe 'Operations' do
  let(:uri) { ENV['ATLAS_URI'] }
  let(:client) { Mongo::Client.new(uri) }

  before do
    if uri.nil?
      skip "ATLAS_URI not set in environment"
    end
  end

  describe 'list_collections' do
    # Atlas free tier proxy enforces restrictions on list_collections
    # arguments. This tests verifies that list_collections works on Atlas

    it 'works' do
      # We are not allowed to mutate the database, therefore the list of
      # collections would generally be empty.
      expect do
        client.database.list_collections
      end.not_to raise_error
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
mongo-2.13.3 spec/atlas/operations_spec.rb
mongo-2.14.1 spec/atlas/operations_spec.rb
mongo-2.15.0.alpha spec/atlas/operations_spec.rb
mongo-2.13.2 spec/atlas/operations_spec.rb
mongo-2.14.0 spec/atlas/operations_spec.rb
mongo-2.14.0.rc1 spec/atlas/operations_spec.rb
mongo-2.13.1 spec/atlas/operations_spec.rb
mongo-2.12.4 spec/atlas/operations_spec.rb
mongo-2.11.6 spec/atlas/operations_spec.rb
mongo-2.13.0 spec/atlas/operations_spec.rb
mongo-2.12.3 spec/atlas/operations_spec.rb
mongo-2.13.0.rc1 spec/atlas/operations_spec.rb
mongo-2.12.2 spec/atlas/operations_spec.rb
mongo-2.10.5 spec/atlas/operations_spec.rb
mongo-2.11.5 spec/atlas/operations_spec.rb
mongo-2.13.0.beta1 spec/atlas/operations_spec.rb
mongo-2.12.1 spec/atlas/operations_spec.rb
mongo-2.12.0.rc0 spec/atlas/operations_spec.rb
mongo-2.11.4 spec/atlas/operations_spec.rb
mongo-2.10.4 spec/atlas/operations_spec.rb