RCSLenS: testing gravitational physics through the cross-correlation of weak lensing and large-scale structure