Michael Schoen
2007-Oct-04 03:32 UTC
Rails AR/Oracle Unit Test: [7736] failed (getting worse)
"bitsweat" has kicked AR/Oracle while it was down... http://dev.rubyonrails.org/changeset/7736 ------------------------------------------------------------------------ r7736 | bitsweat | 2007-10-03 20:28:42 -0700 (Wed, 03 Oct 2007) | 1 line Hash#to_json takes :only or :except options to specific or omit certain hash keys. Enumerable#to_json passes through its options to each element. Closes #9751. ------------------------------------------------------------------------ U activesupport/test/json/encoding_test.rb U activesupport/lib/active_support/json/encoders/date.rb U activesupport/lib/active_support/json/encoders/time.rb U activesupport/lib/active_support/json/encoders/enumerable.rb U activesupport/lib/active_support/json/encoders/false_class.rb U activesupport/lib/active_support/json/encoders/numeric.rb U activesupport/lib/active_support/json/encoders/hash.rb U activesupport/lib/active_support/json/encoders/true_class.rb U activesupport/lib/active_support/json/encoders/symbol.rb U activesupport/lib/active_support/json/encoders/object.rb U activesupport/lib/active_support/json/encoders/string.rb U activesupport/lib/active_support/json/encoders/nil_class.rb U activesupport/lib/active_support/json/encoders/regexp.rb U activesupport/lib/active_support/json/encoders/date_time.rb U activesupport/lib/active_support/json/encoding.rb U activesupport/CHANGELOG U activerecord/test/json_serialization_test.rb U activerecord/lib/active_record/serializers/json_serializer.rb Updated to revision 7736. 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-03 20:31:43 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:1357: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:436:in `find_by_sql'' ./test/../lib/active_record/base.rb:1001:in `find_every'' ./test/../lib/active_record/base.rb:1032:in `find_one'' ./test/../lib/active_record/base.rb:1018:in `find_from_ids'' ./test/../lib/active_record/base.rb:428: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:436:in `find_by_sql'' ./test/../lib/active_record/base.rb:1001:in `find_every'' ./test/../lib/active_record/base.rb:995: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'' 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 -~----------~----~----~----~------~----~------~--~---