Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

removed deprecation warnings

  • Loading branch information...
commit 3aec521c25a2498c92f721627fc6081c4ccc9e55 1 parent 47a87fb
@aderyabin aderyabin authored
View
2  activerecord/test/cases/base_test.rb
@@ -478,7 +478,7 @@ def test_singular_table_name_guesses_for_individual_table
if current_adapter?(:MysqlAdapter) or current_adapter?(:Mysql2Adapter)
def test_update_all_with_order_and_limit
- assert_equal 1, Topic.update_all("content = 'bulk updated!'", nil, :limit => 1, :order => 'id DESC')
+ assert_equal 1, Topic.limit(1).order('id DESC').update_all(:content => 'bulk updated!')
end
end
View
4 activerecord/test/cases/locking_test.rb
@@ -358,7 +358,7 @@ def setup
def test_sane_find_with_lock
assert_nothing_raised do
Person.transaction do
- Person.find 1, :lock => true
+ Person.lock.find(1)
end
end
end
@@ -369,7 +369,7 @@ def test_sane_find_with_lock
def test_eager_find_with_lock
assert_nothing_raised do
Person.transaction do
- Person.find 1, :include => :readers, :lock => true
+ Person.includes(:readers).lock.find(1)
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.