Sha256: d3dfa2e714579e30445e83e248bd69cf77c858289f8e5d1f4f8020a7d799040e

Contents?: true

Size: 815 Bytes

Versions: 1

Compression:

Stored size: 815 Bytes

Contents

module Support #:nodoc:
  # module Authentication
  #   extend self

  #   def configured?
  #     begin
  #       master_uri = "mongodb://mongoid:test@localhost:27017/mongoid_geospatial_test"
  #       Mongo::Connection.from_uri(master_uri)
  #       true
  #     rescue Mongo::AuthenticationError => e
  #       false
  #     end
  #   end

  #   def message
  #     %Q{
  #     ---------------------------------------------------------------------
  #     A user needs to be configured for authentication, otherwise some
  #     configuration specs will not get run. You may set it up from the
  #     mongo console:

  #       $ use mongoid_geospatial_test;
  #       $ db.addUser("mongoid", "test");
  #     ---------------------------------------------------------------------
  #     }
  #   end
  # end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongoid-geospatial-5.1.0 spec/support/authentication.rb