Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 13 lines (11 sloc) 0.265 kb
3aefe23 @CodeMonkeySteve Added specs for mongo driver.
CodeMonkeySteve authored
1 require 'spec/helper/all'
2 require 'lib/em-synchrony/mongo'
3 require 'mongo'
d2bb763 @igrigorik adding em-mongo wrapper for em-synchrony
authored
4
3aefe23 @CodeMonkeySteve Added specs for mongo driver.
CodeMonkeySteve authored
5 describe Mongo::Connection do
6 it 'connects to DB' do
d2bb763 @igrigorik adding em-mongo wrapper for em-synchrony
authored
7 EventMachine.synchrony do
3aefe23 @CodeMonkeySteve Added specs for mongo driver.
CodeMonkeySteve authored
8 conn = Mongo::Connection.new 'localhost', 27017, :connect => true
9 EM.stop
d2bb763 @igrigorik adding em-mongo wrapper for em-synchrony
authored
10 end
11 end
12 end
Something went wrong with that request. Please try again.