From: SonOfLilit Date: 2007-02-20T03:42:14+09:00 Subject: Re: Assertions Testing in irb I meant that #require is in general preferred over #load by experienced ruby programmers. On 2/19/07, Bharat Ruparel wrote: > SonOfLilit wrote: > > Things that work don't necessarily mean good design. > > > > load is rarely used, require is to include libraries or code files, > > include is to mixin a module and has nothing to do with the previous > > two. > > > > Plug: The RubyMentor project is looking for people to help! > > > > http://rubymentor.rubyforge.org/wiki/wiki.pl?HomePage > > Ok, then there has to be "recommended" way to "invoke" the unit testing > functionality in irb. I find irb extremely useful in learning ruby. > Also, I am loading file(s) in irb all the time, so "load is rarely used" > does not make much sense to me. perhaps you meant to say that "load" is > rarely used in a regular script? Also, I am a bit puzzled over why I > cannot "load" a ruby built-in fuctionality into irb (such as unit > testing). Note that I don't have a particular preference for using load > versus require. However, to me, load seems to work better in irb and > require is what I use in a regular script. > > Please comment. > Thanks. > Bharat > > -- > Posted via http://www.ruby-forum.com/. > >