Frederick Cheung wrote:

>> Some editors run tests in the "wrong" folder - if they can run unit tests at 
>> all
>> - so that File.dirname mishmash is crucial for Rails's tests. No idea why the
>> newer version took it out!
> 
> Take a look at the comments for 
> http://github.com/rails/rails/commit/e8170805df1a32119db9d328daee1239b338ac71

"different relative requires of the same file cause Ruby to load it multiple 
times. This causes bugs. Fixing it is the point of this change."

Then use File.expand_path(File.dirname(__FILE__) + '/../test_helper.rb').

expand_path - if I spelled it right - goes to the OS filesystem for the 
uniquely 
correct path, right?

-- 
   Phlip
   http://flea.sourceforge.net/resume.html


--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to