0
Even studying TDD with Rspec I still have difficulties understanding how to perform certain test.
How would I perform a test for this method that has a return of articles?
OBS:
- I use Mongodb with the mongoID ORM.
- In this case, it is really necessary to carry out the test?
class HomeController < ApplicationController
def index
@articles = Article.all
end
end
It depends. What you waiting that this method returns? What is an article within your system?
– Guilherme Bernal