[TxMt] Problems with RubyMate and running Rails test cases

Mathias Meyer mm at beatsteaks.de
Sat Aug 12 11:44:19 UTC 2006


Hi!

This issue has been bugging for quite some builds now. When using a  
newer TextMate build, the current 1202 e.g., I can't get the test  
cases of my Rails project to run from inside TextMate. This is what I  
get when I try Command-R:

---- snip ----
RubyMate r4532 running Ruby v1.8.4 (/opt/local/bin/ruby)
 >>> content_controller_test.rb

that’s nice
this is my important stuff
<strong>bad!</strong>
I am <at> the exit!
NameError: uninitialized constant Test
method const_missing
in dependencies.rb at line 123
method const_missing
in dependencies.rb at line 133
method load_plugin
in init.rb at line 1
method load_plugin
in initializer.rb at line 348
method silence_warnings
in reporting.rb at line 11
method load_plugin
in initializer.rb at line 348
method load_plugins
in initializer.rb at line 158
method load_plugins
in initializer.rb at line 158
method process
in initializer.rb at line 102
method run
in initializer.rb at line 42
at top level
in environment.rb at line 10
at top level
in test_helper.rb at line 2
at top level
in content_controller_test.rb at line 1
Program exited.
---- snap ----

Obviously it isn't able to load the test classes correctly. My Ruby  
installation is in /opt/local, installed with DarwinPorts, and all  
it's libraries are installed there as well. I had a look at the  
RubyMate code in the bundle, but on first look it doesn't appear to  
be broken somehow. This stuff worked fine in TextMate build 1112 with  
RubyMate r3391, though I realized a lot has changed in RubyMate since  
then ;)

Any ideas? Or anyone else having similar issues?

Cheers, Mathias
-- 
http://javaddicts.net/blog
"If programmers got paid to remove code from sofware instead of
writing new code, software would be a whole lot better." -- Nicholas  
Negroponte





More information about the textmate mailing list