Permalink
Browse files

Consistently use consistent_read in tests

  • Loading branch information...
1 parent adc0808 commit cbcc805abc62d12bcc8e9efc7cf6785143274ffc @celeduc celeduc committed Jan 17, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 test/test_base.rb
  2. +2 −2 test/test_simple_record.rb
View
@@ -21,7 +21,7 @@ def teardown
end
def delete_all(clz)
- obs = clz.find(:all)
+ obs = clz.find(:all,:consistent_read=>true)
obs.each do |o|
o.delete
end
@@ -393,9 +393,9 @@ def test_null
# Test to add support for IN
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

0 comments on commit cbcc805

Please sign in to comment.