add rake to spec helper so specs can be from rubymine
Adding test to make sure the file is not already in the process of being transfered. fixes #3882