[rspec-users] How do you specify a rubygem is being required?

Al Chou hotfusionman at yahoo.com
Thu Oct 25 15:13:02 EDT 2007

Glad that was helpful!


----- Original Message ----
From: Ashley Moran <work at ashleymoran.me.uk>
To: rspec-users <rspec-users at rubyforge.org>
Sent: Thursday, October 25, 2007 12:01:11 PM
Subject: Re: [rspec-users] How do you specify a rubygem is being required?

On Oct 25, 2007, at 3:08 am, Al Chou wrote:

> I believe the current version uses the "gem" method and deprecates  
> the "require" method.  Rails warns me about something to that  
> effect whenever I run script/server, anyway.
> Not that I seem to have given you any real help with your spec  
> question....

Actually no, you were spot on!  Using gem allows me to write  
Kernel.gem / Kernel.should_receive(:gem) etc.


blog @ http://aviewfromafar.net/
linked-in @ http://www.linkedin.com/in/ashleymoran
currently @ home

rspec-users mailing list
rspec-users at rubyforge.org

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20071025/12bc30b2/attachment.html 

More information about the rspec-users mailing list