spec/mongo/auth/x509_spec.rb in mongo-2.0.6 vs spec/mongo/auth/x509_spec.rb in mongo-2.1.0.beta

- old
+ new

@@ -4,11 +4,19 @@ let(:address) do Mongo::Address.new(DEFAULT_ADDRESS) end + let(:monitoring) do + Mongo::Monitoring.new + end + + let(:listeners) do + Mongo::Event::Listeners.new + end + let(:server) do - Mongo::Server.new(address, double('cluster'), Mongo::Event::Listeners.new, TEST_OPTIONS) + Mongo::Server.new(address, double('cluster'), monitoring, listeners, TEST_OPTIONS) end let(:connection) do Mongo::Server::Connection.new(server, TEST_OPTIONS) end