Skip to content

Commit

Permalink
hmmm
Browse files Browse the repository at this point in the history
  • Loading branch information
tcurdt committed Jun 6, 2011
1 parent 7ca2afb commit 8c366dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions specs/specs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8c366dd

Please sign in to comment.