This is the same error that I got today with rev 5597 and mentioned to
Rick. I was also running with the all.sh script. (Ruby 1.8.4 on
Mac/Intel)
FWIW, here is what desc is where the code breaks:
Executing break point at
./../lib/../../activesupport/lib/active_support/dependencies.rb:400 in
`to_constant_name''
irb(Dependencies):001:0> desc
=> #<Class:Post>
On 11/20/06, zdennis <zdennis@mktec.com> wrote:>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> When I run ActiveRecord''s unit tests with rake I get the following
all
> tests pass. However, when I run them via the tests/all.sh script I get
> the following failure with xml_serialization_test. Anybody know why?
>
>
>
test_passing_hash_shouldnt_reuse_builder(DatabaseConnectedXmlSerializationTest):
> ArgumentError:
> ./../lib/../../activesupport/lib/active_support/dependencies.rb:399:in
> `to_constant_name'': Anonymous modules have no name to be
referenced by
> ./../lib/active_record/base.rb:1359:in `compute_type''
>
> ./../lib/../../activesupport/lib/active_support/dependencies.rb:211:in
> `qualified_name_for''
>
> ./../lib/../../activesupport/lib/active_support/dependencies.rb:470:in
> `const_missing''
> (eval):1:in `compute_type''
> ./../lib/active_record/reflection.rb:112:in `klass''
> ./../lib/active_record/associations/has_many_association.rb:169:in
> `construct_sql''
> ./../lib/active_record/associations/has_many_association.rb:6:in
> `initialize''
> ./../lib/active_record/associations.rb:920:in `taggings''
> ./../lib/active_record/deprecated_associations.rb:10:in
`taggings_count''
> ./../lib/active_record/xml_serialization.rb:291:in
`compute_value''
> ./../lib/active_record/xml_serialization.rb:246:in
`initialize''
> ./../lib/active_record/xml_serialization.rb:159:in
> `serializable_attributes''
> ./../lib/active_record/xml_serialization.rb:159:in
> `serializable_attributes''
> ./../lib/active_record/xml_serialization.rb:168:in
`add_attributes''
> ./../lib/active_record/xml_serialization.rb:231:in `to_s''
>
>
./../lib/../../activesupport/lib/active_support/vendor/builder/xmlbase.rb:140:in
> `_nested_structures''
>
>
./../lib/../../activesupport/lib/active_support/vendor/builder/xmlbase.rb:60:in
> `method_missing''
>
>
./../lib/../../activesupport/lib/active_support/vendor/builder/xmlbase.rb:32:in
> `tag!''
> ./../lib/active_record/xml_serialization.rb:230:in `to_s''
> ./../lib/active_record/xml_serialization.rb:107:in `to_xml''
> ./../lib/active_record/xml_serialization.rb:193:in
`add_includes''
> ./../lib/active_record/xml_serialization.rb:193:in
`add_includes''
>
>
./../lib/../../activesupport/lib/active_support/vendor/builder/xmlbase.rb:140:in
> `_nested_structures''
>
>
./../lib/../../activesupport/lib/active_support/vendor/builder/xmlbase.rb:60:in
> `method_missing''
>
>
./../lib/../../activesupport/lib/active_support/vendor/builder/xmlbase.rb:32:in
> `tag!''
> ./../lib/active_record/xml_serialization.rb:192:in
`add_includes''
> ./../lib/active_record/xml_serialization.rb:180:in
`add_includes''
> ./../lib/active_record/xml_serialization.rb:232:in `to_s''
>
>
./../lib/../../activesupport/lib/active_support/vendor/builder/xmlbase.rb:140:in
> `_nested_structures''
>
>
./../lib/../../activesupport/lib/active_support/vendor/builder/xmlbase.rb:60:in
> `method_missing''
>
>
./../lib/../../activesupport/lib/active_support/vendor/builder/xmlbase.rb:32:in
> `tag!''
> ./../lib/active_record/xml_serialization.rb:230:in `to_s''
> ./../lib/active_record/xml_serialization.rb:107:in `to_xml''
> ./xml_serialization_test.rb:121:in
> `test_passing_hash_shouldnt_reuse_builder''
>
>
> Zach
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.3 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFFYmlxMyx0fW1d8G0RAioRAJ4lmFb/OAYOcIexWhi5GuttfcOpugCfVLAn
> ZGmTk9UbmmKBYy0ollJShZU> =NksO
> -----END PGP SIGNATURE-----
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---