To run tests, just do 'rake'. There's no rspec for this project.
Tests need to talk to Voyager. The code has a default URL, but if that doesn't work for you (say, you're working from a desktop outside Columbia's firewall) you can set the DEFAULT_OPAC_URL variable to override. For example:
One way to access an internal Columbia host from off-campus is to use an ssh tunnel. The syntax for this is:
ssh -L 7014:voyagerprodapp01.cc.columbia.edu:7014 firstname.lastname@example.org