vendredi 6 novembre 2020

RSpec test module location

I am new to RSpec and I saw that in the sample the class tested is located in the lib folder. when 'require' class, it can directly import?(that is how I took it) the class from that folder. I tried require app/controllers/the_file_with_the_class_I_want_to_test and it says that it was not found. Should I copy and paste the file into the lib path?

Aucun commentaire:

Enregistrer un commentaire