Programmer Question
In my rails application there exists a controller helper which is a Module (not a Class) with lot of helper methods defined in it. I wish to write unit test cases for this before I do code refactoring of this module so as to ensure that my understanding of the current system is right and that I have not broken any functionality inadvertantly. We are using RSpec and I would wish to know how would one go about writing unit test cases for the methods of this helper Module?
Find the answer here
No comments:
Post a Comment