Topic: Testing controller
I am learning test driven development and am a little stuck regarding controllers. I am setting a @variable depending on different stuff - eg. to "yes" if it is before 4am and to "no" if it is after (just an example).
How do I test that? Assert @variable=="yes" doesn't work, the variable isn't defined.