From 8c366dd9443a31d8db6ac23f4d2d5215a8c3ad64 Mon Sep 17 00:00:00 2001 From: Torsten Curdt Date: Tue, 7 Jun 2011 00:15:44 +0200 Subject: [PATCH] hmmm --- specs/specs.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specs/specs.rb b/specs/specs.rb index ee606d2..f1fe9db 100644 --- a/specs/specs.rb +++ b/specs/specs.rb @@ -329,11 +329,11 @@ def master_should_report_clock(pos) it "should update the clock after a transaction" do ActiveRecord::ConnectionAdapters::MasterSlaveAdapter.reset! slave_should_report_clock(0) - master_should_report_clock([0, 1, 1, 1, 1]) + master_should_report_clock([0, 1, 1]) @slave_connection.should_receive('select_all').exactly(1).times.with('testing').and_return(true) - @master_connection.should_receive('update').exactly(3).times.with('testing').and_return(true) - # @master_connection.should_receive('transaction').and_return(true) - @master_connection.should_receive('select_all').exactly(5).times.with('testing').and_return(true) + @master_connection.should_receive('update').exactly(2).times.with('testing').and_return(true) + @master_connection.should_receive('transaction').and_return(true) + @master_connection.should_receive('select_all').exactly(3).times.with('testing').and_return(true) old_clock = zero new_clock = ActiveRecord::Base.with_consistency(old_clock) do