Sha256: d19855feef1beca0e5de2ffb4da27ea1b385b49538051fc06fb974ef1e20096c

Contents?: true

Size: 833 Bytes

Versions: 18

Compression:

Stored size: 833 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

18 entries across 18 versions & 2 rubygems

Version Path
mongoid-geospatial-5.0.0 spec/support/authentication.rb
mongoid-geospatial-4.0.1 spec/support/authentication.rb
mongoid-geospatial-4.0.0 spec/support/authentication.rb
mongoid-geospatial-3.9.0 spec/support/authentication.rb
mongoid_geospatial-3.1.0 spec/support/authentication.rb
mongoid_geospatial-3.0.0 spec/support/authentication.rb
mongoid_geospatial-2.8.3 spec/support/authentication.rb
mongoid_geospatial-2.8.2 spec/support/authentication.rb
mongoid_geospatial-2.8.1 spec/support/authentication.rb
mongoid_geospatial-2.8.0 spec/support/authentication.rb
mongoid_geospatial-2.7.2 spec/support/authentication.rb
mongoid_geospatial-2.7.1 spec/support/authentication.rb
mongoid_geospatial-2.7.0 spec/support/authentication.rb
mongoid_geospatial-2.5.1 spec/support/authentication.rb
mongoid_geospatial-2.5.0 spec/support/authentication.rb
mongoid_geospatial-2.3.0 spec/support/authentication.rb
mongoid_geospatial-2.2.0 spec/support/authentication.rb
mongoid_geospatial-2.0.0 spec/support/authentication.rb