aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorPiotr Sarnacki <drogus@gmail.com>2011-05-10 10:57:15 -0700
committerPiotr Sarnacki <drogus@gmail.com>2011-05-10 10:57:15 -0700
commit9f0af6d6ddab499225b58e46f2c2d04396ebf367 (patch)
tree73470cdd16ec08622190bae82c1bff445b823ec5 /activerecord
parent86604335374f08d9e1889801dafbe92e79b2a1eb (diff)
parent33f0b6b67d640168c2699659c4a6aa2113b635b7 (diff)
downloadrails-9f0af6d6ddab499225b58e46f2c2d04396ebf367.tar.gz
rails-9f0af6d6ddab499225b58e46f2c2d04396ebf367.tar.bz2
rails-9f0af6d6ddab499225b58e46f2c2d04396ebf367.zip
Merge pull request #495 from vatrai/minor_fixes
minor cleaning
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/associations_test.rb2
-rw-r--r--activerecord/test/cases/base_test.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/associations_test.rb b/activerecord/test/cases/associations_test.rb
index 04f628a398..49d82ba2df 100644
--- a/activerecord/test/cases/associations_test.rb
+++ b/activerecord/test/cases/associations_test.rb
@@ -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)
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb
index 1775ba9999..fb4eacb632 100644
--- a/activerecord/test/cases/base_test.rb
+++ b/activerecord/test/cases/base_test.rb
@@ -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