<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 <work@ashleymoran.me.uk><br>To: rspec-users <rspec-users@rubyforge.org><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>> I believe the current version uses the "gem" method and deprecates <br>> the "require" method. Rails warns me about something to that <br>> effect whenever I run script/server, anyway.<br>><br>> Not that I seem to have given you any real help with your spec <br>> question....<br><br><br>Actually no, you were spot on! Using gem allows me to write <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>