How to verify that "puts" has been called with a certain message?
- by soulnafein
Hello there.
I'm trying to make this test fail :)
it "should display the question" do
@ui.should_receive(:puts).with("What's your name?").once
@ui.ask_question("What's your name?")
end
At the moment it passes even if I don't call puts in my function.