Install the RubyTest Package
Then you can use
CopyCMD + .
CMD + .
to switch between the spec and the rb file.