mardi 12 janvier 2016

How do you require a support file for a ruby on rails test

I have a folder called support with a file called name.html.erb in my test directory for a ruby on rails app. I'm trying to require it in my test helper so that I can use this html for testing purposes.

I keep getting an error saying cannot load such file..

I've tried require './test/support/name' require './test/support/name.html.erb'

and tons of other varieties but not seem to work, does anyone have any solutions?

Aucun commentaire:

Enregistrer un commentaire