Permalink
Browse files

Stubbing sleep is busting up ubuntu

  • Loading branch information...
1 parent 0464c02 commit 26093bbfe2be81e195ff941759ff31bc76d56752 @durran durran committed Apr 24, 2012
Showing with 4 additions and 5 deletions.
  1. +4 −5 spec/unit/mongoid/collections/retry_spec.rb
@@ -21,7 +21,6 @@ def do_action
let(:logger) { stub.quacks_like(Logger.allocate) }
before do
- Kernel.stubs(:sleep)
logger.expects(:warn).at_least(0)
Mongoid.stubs(:logger => logger)
end
@@ -46,7 +45,7 @@ def do_action
describe "and Mongoid.max_retries_on_connection_failure is greater than 0" do
let :max_retries do
- 5
+ 2
end
before do
@@ -87,7 +86,7 @@ def do_action
describe "and Mongoid.max_retries_on_connection_failure is greater than 0" do
let :max_retries do
- 5
+ 2
end
before do
@@ -135,7 +134,7 @@ def do_action
describe "and Mongoid.max_retries_on_connection_failure is greater than 0" do
let :max_retries do
- 5
+ 2
end
before do
@@ -176,7 +175,7 @@ def do_action
describe "and Mongoid.max_retries_on_connection_failure is greater than 0" do
let :max_retries do
- 5
+ 2
end
before do

0 comments on commit 26093bb

Please sign in to comment.