[Radiant] Virtual Domain extension for mental
Brian Gernhardt
benji at silverinsanity.com
Fri Dec 15 08:55:32 CST 2006
On Dec 15, 2006, at 9:17 AM, Adam Williams wrote:
> On Dec 14, 2006, at 9:59 PM, Brian Gernhardt wrote:
>>
>> ArgumentError: vendor/rails/activesupport/lib/active_support/
>> dependencies.rb:399:in `to_constant_name': Anonymous modules have no
>> name to be referenced by
>
> This happens, I think, when there is an undefined constant referenced
> in a method. Could you please indicate which two tests you are seeing
> this in? Is it when your behavior is installed only?
It's in the tests for VirtualDomainPage in the plugin (mostly
unchanged from the tests for VirtualDomainBehavior). Specifically,
it's from:
virtual_domain_page_test.rb:88:in `test_default_sitemap'
default_map = @page.children.inject({}) { |memo, page| memo
[page.slug] = page.slug; memo }
virtual_domain_page_test.rb:42:in
`test_find_first_child_for_no_config_unknown_host'
assert_equal @page.children.find(:all).find { |child|
child.published?}, Page.find_by_url("/")
As far as I can tell from mucking with the code, I get the error any
time I call any method on @page.children, where @page is a
VirtualDomainPage. But, thankfully, only in the tests. (The
extension works properly, AFAICT.)
~~ Brian
More information about the Radiant
mailing list