plugins don't bubble syntax errors up correctly

I have this issue:

I don't seem to have that issue - I'm still interested if it's resolved.

I generated a plugin with script/generate plugin, then I tossed a correctly-named class into the lib folder, and I put its first test in the test folder.

The error message is

NameError: uninitialized constant MyClassTest::MyClass

That simply means I need to require 'my_class', right? So I crow-bar it in with this:

require File.dirname(__FILE__) + '/../lib/yar_wiki.rb'

Oookay. Now something in MyClass depends on RAILS_ROOT, so I add that. Then MyClass misses YAML, and I skid to a halt.

Why am I rebuilding the Rails environment for this test case? I'm runing rake test in the folder vendor/plugin/my_class, so The System should just take care of all this paperwork, like the rest of Rails, right?