aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/eager_singularization_test.rb
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2012-04-27 12:37:21 +0100
committerJon Leighton <j@jonathanleighton.com>2012-04-27 12:37:21 +0100
commit0ed05b0e7379e0a6aa47c5677b90383b9f0132b2 (patch)
treeb5b67fb711af82657ef42509724f490236cdb516 /activerecord/test/cases/associations/eager_singularization_test.rb
parent61555a0df11f535d46a0a631fbb0d0773613d08e (diff)
downloadrails-0ed05b0e7379e0a6aa47c5677b90383b9f0132b2.tar.gz
rails-0ed05b0e7379e0a6aa47c5677b90383b9f0132b2.tar.bz2
rails-0ed05b0e7379e0a6aa47c5677b90383b9f0132b2.zip
find and replace deprecated keys
Diffstat (limited to 'activerecord/test/cases/associations/eager_singularization_test.rb')
-rw-r--r--activerecord/test/cases/associations/eager_singularization_test.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/activerecord/test/cases/associations/eager_singularization_test.rb b/activerecord/test/cases/associations/eager_singularization_test.rb
index 1c635fcd96..5805e71249 100644
--- a/activerecord/test/cases/associations/eager_singularization_test.rb
+++ b/activerecord/test/cases/associations/eager_singularization_test.rb
@@ -103,43 +103,43 @@ class EagerSingularizationTest < ActiveRecord::TestCase
def test_eager_no_extra_singularization_belongs_to
return unless @have_tables
assert_nothing_raised do
- Virus.scoped(:include => :octopus).all
+ Virus.scoped(:includes => :octopus).all
end
end
def test_eager_no_extra_singularization_has_one
return unless @have_tables
assert_nothing_raised do
- Octopus.scoped(:include => :virus).all
+ Octopus.scoped(:includes => :virus).all
end
end
def test_eager_no_extra_singularization_has_many
return unless @have_tables
assert_nothing_raised do
- Bus.scoped(:include => :passes).all
+ Bus.scoped(:includes => :passes).all
end
end
def test_eager_no_extra_singularization_has_and_belongs_to_many
return unless @have_tables
assert_nothing_raised do
- Crisis.scoped(:include => :messes).all
- Mess.scoped(:include => :crises).all
+ Crisis.scoped(:includes => :messes).all
+ Mess.scoped(:includes => :crises).all
end
end
def test_eager_no_extra_singularization_has_many_through_belongs_to
return unless @have_tables
assert_nothing_raised do
- Crisis.scoped(:include => :successes).all
+ Crisis.scoped(:includes => :successes).all
end
end
def test_eager_no_extra_singularization_has_many_through_has_many
return unless @have_tables
assert_nothing_raised do
- Crisis.scoped(:include => :compresses).all
+ Crisis.scoped(:includes => :compresses).all
end
end
end