Skip to content

Commit

Permalink
Consistently use consistent_read in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
celeduc committed Jan 17, 2012
1 parent adc0808 commit cbcc805
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/test_base.rb
Expand Up @@ -21,7 +21,7 @@ def teardown
end end


def delete_all(clz) def delete_all(clz)
obs = clz.find(:all) obs = clz.find(:all,:consistent_read=>true)
obs.each do |o| obs.each do |o|
o.delete o.delete
end end
Expand Down
4 changes: 2 additions & 2 deletions test/test_simple_record.rb
Expand Up @@ -393,9 +393,9 @@ def test_null


# Test to add support for IN # Test to add support for IN
def test_in_clause def test_in_clause
# mms = MyModel.find(:all) # mms = MyModel.find(:all,:consistent_read=>true)


# mms2 = MyModel.find(:all, :conditions=>["id in ?"]) # mms2 = MyModel.find(:all, :conditions=>["id in ?"],:consistent_read=>true)


end end


Expand Down

0 comments on commit cbcc805

Please sign in to comment.