unit testing - Rails: How to test code in the lib/ directory? -
I have a model that receives my data from a parse object. I am thinking that the parser class should be in the Lib / Directory (although I can be understood that it should be elsewhere) The question is where will my unit's examination be for the parsing class? And how can I make sure that every time I run the rake test then what will run?
In Rail application, I'm working on 'm', I just have to go to This was the last resistance path for me, because these tests ran without any other changes. test \ unit directory, I will also nest them from the module / directory, for example:
lib / a.rb = & gt; Exam / unit / a_test.rb Lib / B / CRB = & gt; Test / unit / b / c_stest RB
Comments
Post a Comment