[TxMt] can't run RSpec? (get "Missing the Rails 2.1.1 gem" however it is there)

GregHauptmann greg at gregnet.org
Sat Sep 6 09:04:00 UTC 2008


Hi,

I've got rspec working in my project ("rake spec") ok.  I've downloaded the
rspec bundles into TextMate however however when I go
Bundles/RSpec/RunSingleExample (or RunExamples) I get the following error
dialog that appears...

-----error-----
Missing the Rails 2.1.1 gem. Please `gem install -v=2.1.1 rails`, update
your RAILS_GEM_VERSION setting in config/environment.rb for the Rails
version you do have installed, or comment out RAILS_GEM_VERSION to use the
latest version installed.
---------------

Q1- Any idea how to solve?
Q2 - Why does TextMate not see that (a) the environment.rb file has this
variable set correctly to 2.1.1, and (b) the rails 2.1.1 gem exists as I
downloaded it? 
Q3 - How can I confirm what the environment variables are when this test
from within TextMate?  
Q4 - Where would I normally set the environments variables for TextMate?
Q5 - What are the relevant TextMate environment variables that exist that
may need to be set?


Macintosh-2:~ greg$ rails -v 
Rails 2.1.1
Macintosh-2:~ greg$ ruby -v
ruby 1.8.6 (2007-09-23 patchlevel 110) [i686-darwin9.3.0]
Macintosh-2:~ greg$ 
Macintosh-2:~ greg$ gem -v
1.2.0
Macintosh-2:~ greg$ 
Macintosh-2:~ greg$ cat ~/.profile
PATH=$PATH:/usr/local/bin
TERM_PROGRAM=iTerm.app
test -r /sw/bin/init.sh && . /sw/bin/init.sh
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export DISPLAY=:0.0 
Macintosh-2:~ greg$ 

Macintosh-2:~ greg$ cat /etc/profile 
# System-wide .profile for sh(1)

if [ -x /usr/libexec/path_helper ]; then
        eval `/usr/libexec/path_helper -s`
fi

if [ "${BASH-no}" != "no" ]; then
        [ -r /etc/bashrc ] && . /etc/bashrc
fi
Macintosh-2:~ greg$ 



Thanks

-- 
View this message in context: http://www.nabble.com/can%27t-run-RSpec--%28get-%22Missing-the-Rails-2.1.1-gem%22-however-it-is-there%29-tp19342798p19342798.html
Sent from the textmate users mailing list archive at Nabble.com.




More information about the textmate mailing list