I am a little bit confused as to what extent we should use mocks and stubs in our tests. Considering that tests should verify if your methods are working properly; if I do something like that:
describe Dashboard do
describe "#posts" do
it "returns posts created today" do
posts = double("posts_created_today")
This test is going to be green even though I change the #posts method completely.
I'm guessing that of course, we shouldn't mock or stub everything in tests. What would be a different approach for this particular test?