[TxMt] Rspec: Requiring a gem

Allan Odgaard throw-away-1 at macromates.com
Sat Apr 7 06:33:46 UTC 2007


On 7. Apr 2007, at 06:01, Todd Breiholz wrote:

> [...]
> Do I need to do something special to access my gems from my spec?

Try add ‘require 'rubygems'’ to the top of your source.

Alternatively you can set RUBYOPT to rubygems in Preferences →  
Advanced → Shell Variables (that’s likely what you did for the  
shell case).




More information about the textmate mailing list