From 7a2ce50a9386a46387c114945354ba89c5fc9c30 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 21 Feb 2006 00:00:29 +0000 Subject: Improved the Oracle OCI Adapter with better performance for column reflection (from #3210), fixes to migrations (from #3476 and #3742), tweaks to unit tests (from #3610), and improved documentation (from #2446) (closes #3879) [Aggregated by schoenm@earthlink.net] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3623 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/associations_join_model_test.rb | 2 +- activerecord/test/fixtures/db_definitions/oci.sql | 3 +-- activerecord/test/synonym_test_oci.rb | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) (limited to 'activerecord/test') diff --git a/activerecord/test/associations_join_model_test.rb b/activerecord/test/associations_join_model_test.rb index 5c1510faff..f7ca3d6a84 100644 --- a/activerecord/test/associations_join_model_test.rb +++ b/activerecord/test/associations_join_model_test.rb @@ -96,7 +96,7 @@ class AssociationsJoinModelTest < Test::Unit::TestCase end def test_has_many_class_methods_called_by_method_missing - assert_equal categories(:general), authors(:david).categories.find_by_name('General') + assert_equal categories(:general), authors(:david).categories.find_all_by_name('General').first # assert_equal nil, authors(:david).categories.find_by_name('Technology') end diff --git a/activerecord/test/fixtures/db_definitions/oci.sql b/activerecord/test/fixtures/db_definitions/oci.sql index 760659d1c4..31d601b734 100644 --- a/activerecord/test/fixtures/db_definitions/oci.sql +++ b/activerecord/test/fixtures/db_definitions/oci.sql @@ -17,8 +17,7 @@ create sequence companies_nonstd_seq minvalue 10000; create table accounts ( id integer not null, firm_id integer default null references companies initially deferred disable, - credit_limit integer default null, - primary key (id) + credit_limit integer default null ); create sequence accounts_seq minvalue 10000; diff --git a/activerecord/test/synonym_test_oci.rb b/activerecord/test/synonym_test_oci.rb index 4d4776c363..fcfb2f3bd1 100644 --- a/activerecord/test/synonym_test_oci.rb +++ b/activerecord/test/synonym_test_oci.rb @@ -10,7 +10,7 @@ class TestOracleSynonym < Test::Unit::TestCase def test_oracle_synonym topic = Topic.new - subject = Subject.new + subject = Subject.new assert_equal(topic.attributes, subject.attributes) end -- cgit v1.2.3