<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:garamond,new york,times,serif;font-size:12pt">Glad that was helpful!<br><br>Al<div><div style="font-family: garamond,new york,times,serif; font-size: 12pt;"><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Ashley Moran &lt;work@ashleymoran.me.uk&gt;<br>To: rspec-users &lt;rspec-users@rubyforge.org&gt;<br>Sent: Thursday, October 25, 2007 12:01:11 PM<br>Subject: Re: [rspec-users] How do you specify a rubygem is being required?<br><br>
<br>On Oct 25, 2007, at 3:08 am, Al Chou wrote:<br><br>&gt; I believe the current version uses the "gem" method and deprecates&nbsp; <br>&gt; the "require" method.&nbsp; Rails warns me about something to that&nbsp; <br>&gt; effect whenever I run script/server, anyway.<br>&gt;<br>&gt; Not that I seem to have given you any real help with your spec&nbsp; <br>&gt; question....<br><br><br>Actually no, you were spot on!&nbsp; Using gem allows me to write&nbsp; <br>Kernel.gem / Kernel.should_receive(:gem) etc.<br><br>Thanks!<br>Ashley<br><br><br>-- <br>blog @ <a href="http://aviewfromafar.net/" target="_blank">http://aviewfromafar.net/</a><br>linked-in @ <a href="http://www.linkedin.com/in/ashleymoran" target="_blank">http://www.linkedin.com/in/ashleymoran</a><br>currently @ home<br><br>_______________________________________________<br>rspec-users mailing list<br><a ymailto="mailto:rspec-users@rubyforge.org"
 href="mailto:rspec-users@rubyforge.org">rspec-users@rubyforge.org</a><br><a href="http://rubyforge.org/mailman/listinfo/rspec-users" target="_blank">http://rubyforge.org/mailman/listinfo/rspec-users</a></div></div></div></div><br>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com </body></html>