1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

minor cleaning

This commit is contained in:
Vishnu Atrai 2011-05-10 22:51:54 +05:30
parent 4de977117f
commit 33f0b6b67d
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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)

View file

@ -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