mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
commit
9f0af6d6dd
3 changed files with 3 additions and 3 deletions
|
@ -36,7 +36,7 @@ class RenderPartialWithRecordIdentificationController < ActionController::Base
|
|||
end
|
||||
|
||||
def render_with_record_collection
|
||||
@developers = Developer.find(:all)
|
||||
@developers = Developer.all
|
||||
render :partial => @developers
|
||||
end
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@ class AssociationsTest < ActiveRecord::TestCase
|
|||
|
||||
def test_should_construct_new_finder_sql_after_create
|
||||
person = Person.new :first_name => 'clark'
|
||||
assert_equal [], person.readers.find(:all)
|
||||
assert_equal [], person.readers.all
|
||||
person.save!
|
||||
reader = Reader.create! :person => person, :post => Post.new(:title => "foo", :body => "bar")
|
||||
assert person.readers.find(reader.id)
|
||||
|
|
|
@ -105,7 +105,7 @@ class BasicsTest < ActiveRecord::TestCase
|
|||
|
||||
def test_select_symbol
|
||||
topic_ids = Topic.select(:id).map(&:id).sort
|
||||
assert_equal Topic.find(:all).map(&:id).sort, topic_ids
|
||||
assert_equal Topic.all.map(&:id).sort, topic_ids
|
||||
end
|
||||
|
||||
def test_table_exists
|
||||
|
|
Loading…
Reference in a new issue