spec/mongo/server/monitor_spec.rb in mongo-2.0.2 vs spec/mongo/server/monitor_spec.rb in mongo-2.0.3
- old
+ new
@@ -13,11 +13,11 @@
describe '#scan!' do
context 'when calling multiple times in succession' do
let(:monitor) do
- described_class.new(address, listeners)
+ described_class.new(address, listeners, TEST_OPTIONS)
end
it 'throttles the scans to minimum 500ms' do
start = Time.now
monitor.scan!
@@ -27,10 +27,10 @@
end
context 'when the ismaster command succeeds' do
let(:monitor) do
- described_class.new(address, listeners)
+ described_class.new(address, listeners, TEST_OPTIONS)
end
before do
monitor.scan!
end