Michael Schoen
2007-Sep-29 00:02 UTC
Rails AR/Oracle Unit Test: [7675] failed (getting worse)
"bitsweat" has kicked AR/Oracle while it was down... http://dev.rubyonrails.org/changeset/7675 ------------------------------------------------------------------------ r7675 | bitsweat | 2007-09-28 16:55:50 -0700 (Fri, 28 Sep 2007) | 1 line Failing counter cache test. References #6896. ------------------------------------------------------------------------ U activerecord/test/associations_test.rb Updated to revision 7675. 1) Failure: test_belongs_to_counter_after_save(BelongsToAssociationsTest) [./test/associations_test.rb:1167:in `test_belongs_to_counter_after_save'' /usr/pkg/ruby184/lib/ruby/gems/1.8/gems/mocha-0.5.1/lib/mocha/test_case_adapter.rb:19:in `run'']: <1> expected but was <0>. 2) Failure: test_belongs_to_counter_after_update_attributes(BelongsToAssociationsTest) [./test/associations_test.rb:1176:in `test_belongs_to_counter_after_update_attributes'' /usr/pkg/ruby184/lib/ruby/gems/1.8/gems/mocha-0.5.1/lib/mocha/test_case_adapter.rb:19:in `run'']: <1> expected but was <0>. 3) Error: test_joins_dont_clobber_id(FinderTest): ActiveRecord::StatementInvalid: OCIError: ORA-00905: missing keyword: select * from (select raw_sql_.*, rownum raw_rnum_ from (SELECT companies.* FROM companies INNER JOIN companies AS clients ON clients.firm_id = companies.id WHERE (companies.id = 1) AND ( (companies.type = ''Firm'' ) ) ) raw_sql_ where rownum <= 1) where raw_rnum_ > 0 ./test/../lib/active_record/connection_adapters/abstract_adapter.rb:137:in `log'' ./test/../lib/active_record/connection_adapters/oracle_adapter.rb:214:in `execute_without_counting'' ./test/abstract_unit.rb:71:in `execute'' ./test/../lib/active_record/connection_adapters/oracle_adapter.rb:509:in `select'' ./test/../lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `select_all_without_query_cache'' ./test/../lib/active_record/connection_adapters/abstract/query_cache.rb:55:in `select_all'' ./test/../lib/active_record/base.rb:436:in `find_by_sql'' ./test/../lib/active_record/base.rb:987:in `find_every'' ./test/../lib/active_record/base.rb:981:in `find_initial'' ./test/../lib/active_record/base.rb:426:in `find'' ./test/finder_test.rb:555:in `test_joins_dont_clobber_id'' /usr/pkg/ruby184/lib/ruby/gems/1.8/gems/mocha-0.5.1/lib/mocha/test_case_adapter.rb:19:in `run'' 4) Error: test_select_rows(FinderTest): NotImplementedError: select_rows is an abstract method ./test/../lib/active_record/connection_adapters/abstract/database_statements.rb:34:in `select_rows'' ./test/finder_test.rb:608:in `test_select_rows'' /usr/pkg/ruby184/lib/ruby/gems/1.8/gems/mocha-0.5.1/lib/mocha/test_case_adapter.rb:19:in `run'' 5) Error: test_select_values(FinderTest): NotImplementedError: select_rows is an abstract method ./test/../lib/active_record/connection_adapters/abstract/database_statements.rb:34:in `select_rows'' ./test/../lib/active_record/connection_adapters/abstract/database_statements.rb:27:in `select_values'' ./test/finder_test.rb:599:in `test_select_values'' /usr/pkg/ruby184/lib/ruby/gems/1.8/gems/mocha-0.5.1/lib/mocha/test_case_adapter.rb:19:in `run'' 6) Failure: test_rename_column_with_sql_reserved_word(MigrationTest) [./test/migration_test.rb:424:in `test_rename_column_with_sql_reserved_word'' /usr/pkg/ruby184/lib/ruby/gems/1.8/gems/mocha-0.5.1/lib/mocha/test_case_adapter.rb:19:in `run'']: Exception raised: Class: <ActiveRecord::StatementInvalid> Message: <"OCIError: ORA-00904: : invalid identifier: ALTER TABLE people RENAME COLUMN first_name to group"> ---Backtrace--- ./test/../lib/active_record/connection_adapters/abstract_adapter.rb:137:in `log'' ./test/../lib/active_record/connection_adapters/oracle_adapter.rb:214:in `execute_without_counting'' ./test/abstract_unit.rb:71:in `execute'' ./test/../lib/active_record/connection_adapters/oracle_adapter.rb:395:in `rename_column'' ./test/migration_test.rb:424:in `test_rename_column_with_sql_reserved_word'' ./test/migration_test.rb:424:in `test_rename_column_with_sql_reserved_word'' /usr/pkg/ruby184/lib/ruby/gems/1.8/gems/mocha-0.5.1/lib/mocha/test_case_adapter.rb:19:in `run'' --------------- 7) Failure: test_cache_does_not_wrap_string_results_in_arrays(QueryCacheTest) [./test/query_cache_test.rb:51:in `test_cache_does_not_wrap_string_results_in_arrays'' ./test/../lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'' ./test/../lib/active_record/query_cache.rb:8:in `cache'' ./test/query_cache_test.rb:50:in `test_cache_does_not_wrap_string_results_in_arrays'' /usr/pkg/ruby184/lib/ruby/gems/1.8/gems/mocha-0.5.1/lib/mocha/test_case_adapter.rb:19:in `run'']: <2.0> expected to be an instance of <String> but was <Float>. 8) Error: test_arguments_line_up(SchemaDumperTest): NotImplementedError: select_rows is an abstract method ./test/../lib/active_record/connection_adapters/abstract/database_statements.rb:34:in `select_rows'' ./test/../lib/active_record/connection_adapters/abstract/database_statements.rb:27:in `select_values'' ./test/../lib/active_record/connection_adapters/oracle_adapter.rb:407:in `pk_and_sequence_for'' ./test/../lib/active_record/schema_dumper.rb:73:in `table'' ./test/../lib/active_record/schema_dumper.rb:63:in `tables'' ./test/../lib/active_record/schema_dumper.rb:54:in `tables'' ./test/../lib/active_record/schema_dumper.rb:23:in `dump'' ./tes --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---