I did a sudo gem install rspec and cloned the git repository of this bundle as per the instructions.
I have a .rb file and a _spec.rb that run fine from the console but when I press cmd-R with the _spec file opened on Textmate, I get the following error:
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- spec/autorun (LoadError) from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' from /Users/vrinek/Library/Application Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/mate.rb:14 from /tmp/textmate-command-1935.rb:2:in `require' from /tmp/textmate-command-1935.rb:2
Almost the same error appears in a tootltip when I save the _spec.rb file
Same problem here. Interesting to note that I'm using ruby 1.9, i.e. my TM_RUBY var is set to point to ruby1.9, yet the error message points to 1.8.
lighthouse ticket opened: https://rspec.lighthouseapp.com/projects/5645/tickets/876-save-example-file-and-remember-command-ignores-tm_ruby#ticket-876-1
Wait, I have not set my TM_RUBY to anything and I don't even have 1.9 installed...
Interesting. Perhaps it's a different problem for you. Is the ruby executable called from within TextMate the same as the one from the command line? If they're different, you might need to set you PATH var inside TextMate.
In case you need help finding out: Open a new TextMate file, type 'which ruby', and press Ctrl-r. Compare this result with 'which ruby' executed from the command line.
both 'which ruby's return "/opt/local/bin/ruby"
(sorry I also replied to the message)