aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/associations_test.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2006-11-01 20:28:48 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2006-11-01 20:28:48 +0000
commit70840d4b7fcd16c45b7be69c51b0bd1d27c7cbff (patch)
treeb56f01e4586c05e69d1575a986ae59cfa640460e /activerecord/test/associations_test.rb
parentc1c96d55d754e6de1572e35bc9bc68cc896655bf (diff)
downloadrails-70840d4b7fcd16c45b7be69c51b0bd1d27c7cbff.tar.gz
rails-70840d4b7fcd16c45b7be69c51b0bd1d27c7cbff.tar.bz2
rails-70840d4b7fcd16c45b7be69c51b0bd1d27c7cbff.zip
Oracle: resolve test failures, use prefetched primary key for inserts, check for null defaults. Factor out some common methods from all adapters. Closes #6515.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5384 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/associations_test.rb')
-rwxr-xr-xactiverecord/test/associations_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/associations_test.rb b/activerecord/test/associations_test.rb
index d033ef087a..0be63fccbf 100755
--- a/activerecord/test/associations_test.rb
+++ b/activerecord/test/associations_test.rb
@@ -1782,7 +1782,7 @@ class HasAndBelongsToManyAssociationsTest < Test::Unit::TestCase
assert_equal projects(:active_record), developer.projects[0]
assert_equal projects(:action_controller), developer.projects[1]
end
-
+
def test_select_limited_ids_list
# Set timestamps
Developer.transaction do
@@ -1790,10 +1790,10 @@ class HasAndBelongsToManyAssociationsTest < Test::Unit::TestCase
record.update_attributes(:created_at => 5.years.ago + (i * 5.minutes))
end
end
-
+
join_base = ActiveRecord::Associations::ClassMethods::JoinDependency::JoinBase.new(Project)
join_dep = ActiveRecord::Associations::ClassMethods::JoinDependency.new(join_base, :developers, nil)
projects = Project.send(:select_limited_ids_list, {:order => 'developers.created_at'}, join_dep)
- assert_equal "'1', '2'", projects
+ assert_equal %w(1 2), projects.scan(/\d/).sort
end
end