Okay, it''s probably more of a work-around than a real solution, but
the test is fixed. What is happening is that somewhere, somehow, the
''pp'' module is being loaded, but it is being loaded too late
for some
of the test controllers. For those controllers, the list of hidden
actions has already been initialized by the time ''pp'' is
loaded,
resulting in the pretty-print methods being in the list of accessible
methods.
All I did was add "require ''pp''" to the base_test.rb
file, and the
error went away.
- Jamis
On Sep 20, 2005, at 4:57 AM, David Heinemeier Hansson wrote:
> When running rake on Action Pack, we have this failure:
>
> 1) Failure:
> test_action_methods(ControllerInstanceTests)
> [./test/controller/base_test.rb:69:in `test_action_methods''
> ./test/controller/base_test.rb:69:in `each''
> ./test/controller/base_test.rb:69:in `test_action_methods'']:
> submodule/subclassed should be empty!.
> <{}> expected but was
> <{"pretty_print_cycle"=>true,
> "pretty_print_inspect"=>true,
> "pretty_print"=>true,
> "pretty_print_instance_variables"=>true}>.
>
> It''s mighty weird and somehow it relates to
> action_pack_assertions_test.rb since the error goes away if you remove
> all the test cases from that suite. So who wants to dig in and find
> the explanation for this one?
> --
> David Heinemeier Hansson
> http://www.loudthinking.com -- Broadcasting Brain
> http://www.basecamphq.com -- Online project management
> http://www.backpackit.com -- Personal information manager
> http://www.rubyonrails.com -- Web-application framework
> _______________________________________________
> Rails-core mailing list
> Rails-core@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-core
>