1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
|
Description: Disable tests requiring mongodb service
Debian specific patch
Author: Pirate Praveen <praveen@debian.org>
Last-Update: 2016-07-06
--- a/spec/em-mongo_spec.rb
+++ b/spec/em-mongo_spec.rb
@@ -1,7 +1,7 @@
require "spec/helper/all"
describe EM::Mongo do
- it "should yield until connection is ready" do
+ xit "should yield until connection is ready" do
EventMachine.synchrony do
connection = EM::Mongo::Connection.new
connection.connected?.should eq(true)
@@ -14,7 +14,7 @@
end
describe 'Synchronously (find & first)' do
- it "should insert a record into db" do
+ xit "should insert a record into db" do
EventMachine.synchrony do
collection = EM::Mongo::Connection.new.db('db').collection('test')
collection.remove({}) # nuke all keys in collection
@@ -30,7 +30,7 @@
end
end
- it "should insert a record into db and be able to find it" do
+ xit "should insert a record into db and be able to find it" do
EventMachine.synchrony do
collection = EM::Mongo::Connection.new.db('db').collection('test')
collection.remove({}) # nuke all keys in collection
@@ -51,7 +51,7 @@
end
end
- it "should be able to order results" do
+ xit "should be able to order results" do
EventMachine.synchrony do
collection = EM::Mongo::Connection.new.db('db').collection('test')
collection.remove({}) # nuke all keys in collection
@@ -81,7 +81,7 @@
#
if defined?(EM::Mongo::Cursor)
describe '*A*synchronously (afind & afirst) [Mongo > 0.3.6, using cursor]' do
- it "should insert a record into db" do
+ xit "should insert a record into db" do
EventMachine.synchrony do
collection = EM::Mongo::Connection.new.db('db').collection('test')
collection.remove({}) # nuke all keys in collection
@@ -99,7 +99,7 @@
end
end
- it "should insert a record into db and be able to find it" do
+ xit "should insert a record into db and be able to find it" do
EventMachine.synchrony do
collection = EM::Mongo::Connection.new.db('db').collection('test')
collection.remove({}) # nuke all keys in collection
@@ -121,7 +121,7 @@
end
end
- it "should be able to order results" do
+ xit "should be able to order results" do
EventMachine.synchrony do
collection = EM::Mongo::Connection.new.db('db').collection('test')
collection.remove({}) # nuke all keys in collection
@@ -149,7 +149,7 @@
else
describe '*A*synchronously (afind & afirst) [Mongo <= 0.3.6, using blocks]' do
- it "should insert a record into db" do
+ xit "should insert a record into db" do
EventMachine.synchrony do
collection = EM::Mongo::Connection.new.db('db').collection('test')
collection.remove({}) # nuke all keys in collection
@@ -166,7 +166,7 @@
end
end
- it "should insert a record into db and be able to find it" do
+ xit "should insert a record into db and be able to find it" do
EventMachine.synchrony do
collection = EM::Mongo::Connection.new.db('db').collection('test')
collection.remove({}) # nuke all keys in collection
@@ -188,7 +188,7 @@
end
end
- it "should be able to order results" do
+ xit "should be able to order results" do
EventMachine.synchrony do
collection = EM::Mongo::Connection.new.db('db').collection('test')
collection.remove({}) # nuke all keys in collection
@@ -216,7 +216,7 @@
end
- it "should update records in db" do
+ xit "should update records in db" do
EventMachine.synchrony do
collection = EM::Mongo::Connection.new.db('db').collection('test')
collection.remove({}) # nuke all keys in collection
@@ -233,7 +233,7 @@
context "authentication" do
# these specs only get asserted if you run mongod with the --auth flag
- it "successfully authenticates", ci_skip: true do
+ xit "successfully authenticates", ci_skip: true do
# For this spec you will need to add this user to the database
#
# From the Mongo shell:
@@ -246,7 +246,7 @@
end
end
- it "raises an AuthenticationError if it cannot authenticate" do
+ xit "raises an AuthenticationError if it cannot authenticate" do
EventMachine.synchrony do
database = EM::Mongo::Connection.new.db('db')
proc {
|