move files to function prperly with rspec