Re: Re: require files

Alex Katebi
2011-04-02T00:50:39Z

Thanks so much! The require_relative is much cleaner. 1.9 works for me.

On Fri, Apr 1, 2011 at 12:27 PM, Kendall Gifford
<zettabyte-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:

>
> This is a commonly used convention:
>
> #
> # Yes, the double "../" are needed if requiring
"../spec_helper.rb" this
> way
> #
> require File.expand_path("../../spec_helper.rb", __FILE__)
>
> If using ruby 1.9, I know there is #require_relative but I''ve
never really
> used it yet.