The best way to do this is use autospec, it now works properly even with symlinked plugins
bin/rake autospec
Save plugin.rb file or plugin spec file and it will run.
Be sure to run all plugin migrations with (which will happen magically if you run)
RAILS_ENV=test bin/rake db:migrate