Carl Lerche
2006-Oct-27 23:47 UTC
rake:functionals + controller namespaces + "global" setup method = BOOM + a sad me
Hey guys, Ok, it seems like a very particular problem. I wasn''t able to figure this one out off the top of my head but I have some clues and will probably dive back in this after taking a breather. First, I generated an empty project to demonstrate the problem www.conqueredthe.us/personal/functionals.zip The problem: I can run every every functional test on its own, but running them as a whole blows up with a million errors, most of them like: ---------------- /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/transactions.rb:112:in `unlock_mutex'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/fixtures.rb:534:in `teardown'' ---------------- The setup: 1) A controller in a namespace (ie: Namespace/Explode) 2) A controller in the root namespace (ie: Superman - if you don''t have this rake test:functionals works) 3) Setting a "global" setup method (def setup in test_helper.rb) I think that''s it. Now, here''s the kicker, if you comment out the very first line in the Namespace/Explode functional test (require File.dirname(__FILE__) + ''/../../test_helper'') rake test:functionals works but not running that single file, obviously. Any ideas as to why this is? If I don''t get it soon, I''m going to just do a work around of some sort. Thanks, -carl --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---