diff options
Diffstat (limited to 'activerecord/test/finder_test.rb')
-rw-r--r-- | activerecord/test/finder_test.rb | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/activerecord/test/finder_test.rb b/activerecord/test/finder_test.rb index 229de2aa18..23b6508f99 100644 --- a/activerecord/test/finder_test.rb +++ b/activerecord/test/finder_test.rb @@ -5,10 +5,9 @@ require 'fixtures/reply' require 'fixtures/entrant' require 'fixtures/developer' require 'fixtures/post' -require 'fixtures/author' class FinderTest < Test::Unit::TestCase - fixtures :authors, :companies, :topics, :entrants, :developers, :developers_projects, :posts, :accounts + fixtures :companies, :topics, :entrants, :developers, :developers_projects, :posts, :accounts def test_find assert_equal(topics(:first).title, Topic.find(1).title) @@ -450,18 +449,6 @@ class FinderTest < Test::Unit::TestCase assert_equal ["37signals","Summit","Microsoft", "Flamboyant Software", "Ex Nihilo", "RailsCore", "Leetsoft", "Jadedpixel"], Company.connection.select_values("SELECT name FROM companies ORDER BY id") end - def test_find_doesnt_mangle_parameters - author = Author.find(1) - - args = [:all, {:conditions => "body like '%t%'"}] - - author.posts.each do |p| - assert_equal Post.find(p.id).comments.length, - p.comments.find(*args).length, - "Post ##{p.id} doesn't find correct number of comments" - end - end - protected def bind(statement, *vars) if vars.first.is_a?(Hash) |