Sha256: e75908bbe6ca015134f4e2be6fffd68344832cbb7753a0ec461d5ed2be972a8a
Contents?: true
Size: 787 Bytes
Versions: 3
Compression:
Stored size: 787 Bytes
Contents
# encoding: utf-8 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mongoid_geospatial-1.0.0 | spec/support/authentication.rb |
mongoid_geospatial-1.0.0rc1 | spec/support/authentication.rb |
mongoid_geospatial-1.0.0rc0 | spec/support/authentication.rb |