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

Merge pull request #495 from vatrai/minor_fixes

minor cleaning
This commit is contained in:
Piotr Sarnacki 2011-05-10 10:57:15 -07:00
commit 9f0af6d6dd
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