jeudi 23 mai 2019

How to test private helper(module) method in rspec

I have a helper module named "AppHelper" and private method "sum" which I want to test using rspec.

For example:

module AppHelper
 private
 def sum(a,b)
   puts a+b
 end
end

Aucun commentaire:

Enregistrer un commentaire