vendredi 23 juin 2017

image_path causes error Rspec test

Have a service that uses in a method. ActionController::Base.helpers.image_path("test.svg")

In Rspec, when testing this service — this gets stuck and I have to stop the test. Not sure what the error is because it wont' proceed. But if I control + C.. it does say it is a ExecJS::RuntimeError.

If slash is added, (the path is wrong) but it does not cause and error ActionController::Base.helpers.image_path("/test.svg")

Just to check if puts ActionController::Base.helpers is available..
puts ActionController::Base.helpers.methods

image_path is indeed reported back as available.

Aucun commentaire:

Enregistrer un commentaire