jspooner
jspooner

Reputation: 11315

Rspec bundle is broken in TextMate and rvm

I've had a difficult time since I started using rvm. I've done all the rvm/textmate set up and have the latest bundles but I still can't run Rspec test from textmate.

Upvotes: 7

Views: 3471

Answers (4)

Aaron Gibralter
Aaron Gibralter

Reputation: 4853

Did you try following the instructions here: http://rvm.io/integration/textmate/

Upvotes: 1

Guoliang Cao
Guoliang Cao

Reputation: 507

I've got a similar problem and figured out that my textmate ruby wrapper is pointing to a different version. I was able to get it work by putting below content in projectx/.rvmrc

rvm 1.9.2@projectx --create

rvm wrapper 1.9.2@projectx textmate

Hope this helps.

Upvotes: 0

jspooner
jspooner

Reputation: 11315

The best solution I've found is from Jacques Crocker. http://groups.google.com/group/rubyversionmanager/browse_thread/thread/64b84bbcdf49e9b?fwc=1

It requires replacing the contents of textmate_ruby with the code below and never running rvm wrapper xxx textmate again.

#!/usr/bin/env sh 
source ~/.rvm/scripts/rvm 
cd . 
exec ruby "$@" 

This has also fixed the same issue with the cucumber bundle.

Upvotes: 6

ilpoldo
ilpoldo

Reputation: 526

My case is slightly different but took me more than an hour to figure out:

Turns out I ran rvm wrapper ree textmate a while after installing ree with rvm and in the mean time the ree shorthand changed from meaning ree-1.8.7-2010.01 to ree-1.8.7-2010.02

here's more details on my message: https://gist.github.com/721987

I'm posting it here too because it's one of the first pages I landed onto while trying to figure this one out.

Upvotes: 0

Related Questions