Michael Schoen
2007-Oct-06 00:37 UTC
Rails AR/Oracle Unit Test: [7750] failed (but getting better)
"bitsweat" has given AR/Oracle some love, but it''s still unhappy... http://dev.rubyonrails.org/changeset/7750 ------------------------------------------------------------------------ r7750 | bitsweat | 2007-10-05 17:33:51 -0700 (Fri, 05 Oct 2007) | 1 line Simplify some JSON tests ------------------------------------------------------------------------ U activerecord/test/json_serialization_test.rb Updated to revision 7750. 1) Failure: test_preserving_date_objects(BasicsTest) [./test/base_test.rb:372:in `test_preserving_date_objects'' /usr/pkg/ruby184/lib/ruby/gems/1.8/gems/mocha-0.5.1/lib/mocha/test_case_adapter.rb:19:in `run'']: The last_read attribute should be of the Time class. <Thu, 15 Apr 2004> expected to be kind_of? <Time> but was <Date>. 2) Failure: test_should_allow_includes_for_list_of_authors(DatabaseConnectedJsonEncodingTest) [./test/json_serialization_test.rb:166:in `test_should_allow_includes_for_list_of_authors'' /usr/pkg/ruby184/lib/ruby/gems/1.8/gems/mocha-0.5.1/lib/mocha/test_case_adapter.rb:19:in `run'']: <"[{\"name\": \"David\", \"posts\": [{\"id\": 1}, {\"id\": 2}, {\"id\": 4}, {\"id\": 5}, {\"id\": 6}]}, {\"name\": \"Mary\", \"posts\": [{\"id\": 7}]}]"> expected but was <"[{\"name\": \"David\", \"posts\": [{\"id\": 6}, {\"id\": 4}, {\"id\": 1}, {\"id\": 5}, {\"id\": 2}]}, {\"name\": \"Mary\", \"posts\": [{\"id\": 7}]}]">. 3) Error: test_saves_both_date_and_time(DateTimeTest): RangeError: out of range of Time (expect between 1970-01-01 00:00:00 UTC and 2037-12-31 23:59:59, but 1807-10-05 17:35:58 PST) /usr/pkg/ruby184/lib/ruby/site_ruby/1.8/oci8.rb:983:in `to_time'' /usr/pkg/ruby184/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/connection_adapters/oracle_adapter.rb:503:in `select'' ./test/../lib/active_record/base.rb:1360:in `each_with_index'' /usr/pkg/ruby184/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/connection_adapters/oracle_adapter.rb:496: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:439:in `find_by_sql'' ./test/../lib/active_record/base.rb:1004:in `find_every'' ./test/../lib/active_record/base.rb:1035:in `find_one'' ./test/../lib/active_record/base.rb:1021:in `find_from_ids'' ./test/../lib/active_record/base.rb:431:in `find'' ./test/date_time_test.rb:13:in `test_saves_both_date_and_time'' /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_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'' /usr/pkg/ruby184/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/connection_adapters/oracle_adapter.rb:222:in `execute_without_counting'' ./test/abstract_unit.rb:70:in `execute'' /usr/pkg/ruby184/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/connection_adapters/oracle_adapter.rb:489: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:439:in `find_by_sql'' ./test/../lib/active_record/base.rb:1004:in `find_every'' ./test/../lib/active_record/base.rb:998:in `find_initial'' ./test/../lib/active_record/base.rb:429: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'' 5) 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'' 6) 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'' 7) Failure: test_binary_in_fixtures(FixturesTest) [./test/fixtures_test.rb:194:in `test_binary_in_fixtures'' /usr/pkg/ruby184/lib/ruby/gems/1.8/gems/mocha-0.5.1/lib/mocha/test_case_adapter.rb:19:in `run'']: <"\377\330\377\340\000\020JFIF\000\001\001\001\000H\000H\000\000\377\333\000C\000\010\006\006\a\006\005\010\a\a\a\t\t\010\n\f\024\r\f\v\v\f\031\022\023\017\024\035\032\037\036\035\032\034\034 $.'' \",#\034\034(7),01444\037''9=82<.342\377\333\000C\001\t\t\t\f\v\f\030\r\r\0302!\034!222222222222222222222222222222 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---