Hi Guys,
I would like to require a set of *.rb files into my test.
But the problem is they sit in sub-directories. So i end up with a
whole list of require statements.

If i am doing something like this:
Dir["lib/config/*.rb"].each {|file| require file }
Dir["lib/common/*.rb"].each {|file| require file }
Dir["lib/page/*.rb"].each {|file| require file }

lib is common so is there a way I can turn those three statements into
just one line of code?

So that it looks like something like this:
Dir["lib/*/*.rb"].each {|file| require file }

any help would be much appreciated...

Kind regards,
Usman Hussain

-- 
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