search for: helper_fil

Displaying 1 result from an estimated 1 matches for "helper_fil".

Did you mean: helper_file
2010 Dec 12
1
In Test/Unit Dir.glob is Rails root but to require a file must assume "Rails_root/test/"
...s/file.rb And not test/integration/helpers/file.rb I assume this is due somehow to Test/Unit running and having its own assumed root directory in "test/" and not Rails root. So is there a prettier method of doing this" Dir.glob("test/integration/helpers/*.rb").each do |helper_file| require helper_file.gsub(/test\//, '''') # for some reason the Dir.glob starts at rails root but when requiring, it starts within test/* end -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to...