Sha256: 7219a0b66e8888705eab370a2604ba65c49d08895198406687fdec104f9fe672
Contents?: true
Size: 598 Bytes
Versions: 5
Compression:
Stored size: 598 Bytes
Contents
require File.dirname(__FILE__) + '/../lib/exodus' Dir["#{File.dirname(__FILE__)}/support/*.rb"].each { |f| require f } mongo_uri = 'mongodb://exodus:exodus@dharma.mongohq.com:10048/Exodus-test' local_uri = 'mongodb://localhost:27017/Exodus-test' Exodus.configure do |config| config.db = 'Exodus-test' config.config_file = File.dirname(__FILE__) + '/support/config.yml' begin config.connection = Mongo::MongoClient.from_uri(mongo_uri) rescue Mongo::ConnectionFailure => e puts e.message, 'Connecting to local db...' config.connection = Mongo::MongoClient.from_uri(local_uri) end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
exodus-1.1.6 | spec/spec_helper.rb |
exodus-1.1.5 | spec/spec_helper.rb |
exodus-1.1.4 | spec/spec_helper.rb |
exodus-1.1.3 | spec/spec_helper.rb |
exodus-1.1.2 | spec/spec_helper.rb |