Allow spotlight to be tested under various versions of rails