Permalink
Browse files

minor cleaning

  • Loading branch information...
1 parent 4de9771 commit 33f0b6b67d640168c2699659c4a6aa2113b635b7 @vishnuatrai vishnuatrai committed May 10, 2011
@@ -36,7 +36,7 @@ def render_with_record
end
def render_with_record_collection
- @developers = Developer.find(:all)
+ @developers = Developer.all
render :partial => @developers
end
@@ -85,7 +85,7 @@ def test_bad_collection_keys
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 @@ def test_limit_should_allow_sql_literal
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

0 comments on commit 33f0b6b

Please sign in to comment.