I have a plain Ruby project in the normal setup.rb structure. When I point IDEA at it, everything loads up. However, right-clicking on a test file and trying to run it gets me:
/usr/bin/ruby -e STDOUT.sync=true;STDERR.sync=true;load($0=ARGV.shift) /Users/marick/src/publish/graffle/test/text-tests.rb
/Users/marick/src/publish/graffle/test/text-tests.rb:7:in `require': no such file to load -- s4t-utils (LoadError)
from -e:1:in `load'
Process finished with exit code 1
s4t-utils is a gem. The problem is that the RUBYOPT=rubygems environment variable isn't passed on. I can easily add -rubygems to the Ruby Arguments in the Run dialog, but that's awfully inconvenient for something that's supposed to make running a focused test easy. I tried adding -rubygems to the Ruby Script and Ruby Test default settings, but they don't have any effect next time I right-click on a test and create a new Run configuration.
I am using Mac Leopard 10.5.1 and plugin 12772.
P.S. In the Ruby on Rails Project settings, General tab, "Environment" is misspelled.